This page illustrates the fundamental structure of an HTML document and explains the purpose of key structural tags.
An HTML document typically follows this structure:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document Title</title> <meta name="description" content="Page description"> </head> <body> <!-- Content goes here --> </body> </html>
Declares the document type and version of HTML being used. In HTML5, it is simply <!DOCTYPE html>
.
The root element that encompasses all other elements in the document.
Contains meta-information about the document, such as its title, character set, and linked resources like stylesheets.
Specifies the character encoding for the document, ensuring proper display of text.
Sets the title of the document, which appears in the browser's title bar or tab.
Contains the content of the document that is displayed to users, including text, images, and other media.
A block-level container used to group elements for styling or scripting purposes.
An inline container used to group text or elements for styling purposes.
Represents introductory content, typically a group of introductory or navigational aids.
Defines a set of navigation links.
Specifies the main content of the document, unique to the document's central topic.
Represents a footer for its nearest sectioning content or sectioning root element.
Understanding these structural tags is essential for creating well-organized and semantically meaningful HTML documents.