HTML, Head, Body tags

0
6χλμ.

HTML

  • The root element of an HTML document.
  • Encloses the entire document, including the head and body sections.
  • Provides the overall structure for the webpage.

Head

  • Contains metadata about the webpage, information that is not displayed directly on the page but is essential for browsers and search engines.
  • Common elements within the head include:
    • <title>: Sets the title of the page, displayed in the browser's tab.
    • <meta>: Provides additional information about the page, such as keywords, description, author, character encoding, viewport, etc.
    • <link>: Links to external stylesheets (CSS) for styling the page.
    • <script>: Includes JavaScript code for interactive elements.

Body

  • Contains the visible content of the webpage.
  • This is where you place elements like headings, paragraphs, images, links, forms, and other content that users will see.
  • Common elements within the body include:
    • <h1> to <h6>: Defines headings of different levels.
    • <p>: Defines a paragraph.
    • <img>: Embeds an image.
    • <a>: Creates a hyperlink.
    • <div>: Defines a division or section in an HTML document.
    • <span>: Defines an inline section in an HTML document.

Basic HTML Structure:

HTML
<!DOCTYPE html>
<html>
<head>
  <title>My Web Page</title>
  <meta charset="UTF-8">
</head>
<body>
  <h1>Hello, world!</h1>
  <p>This is a paragraph.</p>
</body>
</html>

In summary:

  • The html tag encompasses the entire document.
  • The head tag contains metadata about the page.
  • The body tag contains the visible content of the page.
Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Mathematics
UACE MACIDITA PURE MATHS MOCK EXAM 2024
UACE MACIDITA PURE MATHS MOCK EXAM 2024
από Expedito 2024-08-13 19:01:30 0 7χλμ.
Business
Build Meaningful Connections and Watch Your Business Thrive
Networking is Key! Build Meaningful Connections and Watch Your Business Thrive In the fast-paced...
από Olaim 2024-07-23 17:42:22 0 11χλμ.
Technology
Information Systems and Business Strategy
Information Systems (IS): These are integrated sets of components for collecting, storing,...
από Business Information Systems (BIS) Course 2024-08-01 17:03:22 0 9χλμ.
άλλο
10 ways to show love
Here are 10 meaningful ways to show love:Quality Time – Spend uninterrupted, focused time...
από tebtalks 2024-09-23 04:45:26 1 6χλμ.
Εκπαίδευση
MODERN AFRICAN NATIONAL HISTORY MADE EASY
https://acrobat.adobe.com/id/urn:aaid:sc:EU:4838a935-5393-417a-a9b9-a4c21d6109cb
από Expedito 2024-07-18 10:47:57 0 8χλμ.
Tebtalks https://tebtalks.com