Document 002
Document 002
1. <!DOCTYPE html>
- This tag defines the document type and version of HTML being used,
which in modern web development is HTML5. It tells the web browser that
the document conforms to HTML5 standards, helping ensure consistent
rendering across different browsers. It is not an HTML tag per se, but a
declaration that informs the browser about the version of HTML to expect.
2. <html>
3. <head>
- <title>: Sets the title of the document, which appears in the browser’s
title bar or tab. This is a critical component for search engine optimization
(SEO) and user experience.
4. <body>
- The `<body>` tag encloses all the content that is visible on the web
page. This includes text, images, links, and other media or interactive
elements. It represents the main content area of the HTML document and is
where the bulk of the web page’s content resides.
5. <h1> to <h6>
- These tags represent headings of different levels, with `<h1>` being the
highest or most important level, and `<h6>` the lowest. They are used to
structure content hierarchically, making it easier for users and search
engines to understand the content’s organization. Headings help in creating
a clear and organized layout for documents and are essential for
accessibility.
6. <p>
7. <a>
8. <img>
- The `<img>` tag embeds images into the document. It is used to display
visual content and requires the `src` attribute to specify the image file’s
location. It can also include attributes like `alt` for alternative text, providing
a description of the image for accessibility and SEO.
9. <div>
10. <span>
11. <ul>
12. <ol>
- The `<ol>` tag defines an ordered list, where items are displayed with
numbers or letters. It is used to present a sequential order or ranking of
items. Like `<ul>`, each item is marked by the `<li>` tag.
13. <table>
- The `<table>` tag creates a table, allowing for the presentation of data
in a structured grid format. Tables are composed of rows and columns, with
the following components:
- <td>: Defines a standard data cell in the table where actual content is
placed.
14. <form>
- The `<form>` tag defines an interactive form for collecting user input. It
acts as a container for various form elements, enabling the submission of
data to a server. Key elements include:
15. <header>
16. <footer>
17. <nav>
- The `<nav>` tag is used to define a section of navigation links. It helps
in grouping and organizing links that allow users to navigate through
different parts of a website or web application. It is essential for creating a
clear and intuitive navigation structure.
18. <section>
19. <article>
20. <aside>
21. <br>
- The `<br>` tag inserts a line break within text, creating a new line
without starting a new paragraph. It is commonly used in addresses, poems,
or other content where explicit line breaks are necessary.
22. <hr>
- The `<hr>` tag inserts a horizontal rule (line) across the page, used to
separate content or indicate a thematic change. It is a block-level element
that provides a visual break or division in content.
23. <strong>
24. <em>
25. <blockquote>
26. <code>
27. <pre>
- The `<pre>` tag defines preformatted text, preserving both spaces and
line breaks. It is useful for displaying code, text with specific formatting, or
content where whitespace is significant.
28. <iframe>
- The `<iframe>` tag embeds another HTML document within the current
document. It allows for the inclusion of external content, such as videos,
maps, or other web pages, within the page, creating a nested browsing
context.