HTML, Head, Body tags

0
6KB

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.
Suche
Kategorien
Mehr lesen
Technology
Role of Business Information Systems (BIS) in Various Business Functions
Business Information Systems (BIS) play a crucial role in enhancing the efficiency and...
Von Business Information Systems (BIS) Course 2024-08-01 17:02:21 0 8KB
Spiele
Nulls Brawl Download With All Fighters Open and New Stuff Like Lumi
So here’s the thing, Brawl Stars is good and all, but sometimes it gets tiring when you...
Von wamuu 2025-04-14 13:55:53 0 4KB
Technology
Workbook and Worksheet Basics
Workbook Think of a workbook as a digital binder. It's a container that holds one or more...
Von Microsoft Excel 2024-07-26 04:35:59 0 6KB
Ausbildung
George Washington Carver
Von Modern American History 2024-08-02 16:31:15 0 7KB
Technology
PMO Software Simplified: How Celoxis Empowers Project Management Offices
In an era where businesses juggle multiple projects, programs, and portfolios, a Project...
Von emmasmith28 2025-03-03 05:59:11 0 9KB
Tebtalks https://tebtalks.com