Class – 03 | HTML Document Structure | HTML Tutorial

HTML Document Structure - Class - 3
HTML Document Structure – Class – 3

An HTML document is structured using a series of HTML elements represented by tags. Here is the basic structure of an HTML document:

<!DOCTYPE html>
    <title>Page Title</title>
      <!-- header content -->
      <!-- navigation links -->
      <!-- main content of the page -->
      <!-- aside content -->
      <!-- footer content -->


The <!DOCTYPE html> declaration is used to specify the HTML version used in the document.


The <html> element is the root element of an HTML page and contains all the other elements.


The <head> Element provides meta-information about the document, such as the page title, displayed in the browser’s title bar or tab.


The <body> element contains the page’s primary content, including the header, navigation, main content, aside, and footer sections.


The <header> element typically contains the header content, such as the logo and site title.


The <nav> element is used to contain navigation links.


The <main> element manages the page’s primary content, including articles, images, and videos.


The <aside> element is used to have content related to the main content but can be considered separate, such as a sidebar.


The <footer> element contains the footer content, such as copyrights and links to other pages.

Next Class

See also  Class – 14 | HTML Buttons | HTML Tutorial

Hamza Raja

Website Developer, Blogger, Digital Marketer & Search Engine Optimization SEO Expert.

Leave a Comment