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.
البحث
الأقسام
إقرأ المزيد
Computer Programming
Using the <span> Tag for Styling
The <span> tag is a generic HTML element that is often used to group inline elements...
بواسطة HTML PROGRAMMING LANGUAGE 2024-08-29 02:17:00 0 8كيلو بايت
Technology
Transaction Processing Systems (TPS)
These are information systems that manage and process data from business transactions. A...
بواسطة Business Information Systems (BIS) Course 2024-07-31 18:42:51 0 6كيلو بايت
Technology
Importance of Cyber Laws
Cyber laws, also known as internet laws or digital laws, are essential for regulating activities...
بواسطة Olaim 2024-07-16 17:07:21 0 6كيلو بايت
Technology
Ethical Code of Conduct
An ethical code of conduct is a set of principles and guidelines designed to help professionals...
بواسطة Olaim 2024-07-16 17:00:57 0 6كيلو بايت
Tebtalks https://tebtalks.com