Easy Tutorial
❮ Att Tr Align Tag Aside ❯

HTML <main> Tag

Example

Use the main tag to display the main content of the document:

<main>
  <h1>Web Browsers</h1>
  <p>Google Chrome, Firefox, and Internet Explorer are the most popular browsers today.</p>

  <article>
    <h1>Google Chrome Browser</h1>
    <p>Google Chrome is a free, open-source web browser developed by Google, released in 2008.</p>
  </article>

  <article>
    <h1>Internet Explorer Browser</h1>
    <p>Internet Explorer is a free web browser developed by Microsoft, released in 1995.</p>
  </article>

  <article>
    <h1>Mozilla Firefox Browser</h1>
    <p>Firefox is a free, open-source web browser from Mozilla, released in 2004.</p>
  </article>
</main>

Definition and Usage

The <main> tag is used to specify the main content of the document.

The content inside the <main> tag is unique to the document. It should not include content that is repeated across documents, such as sidebars, navigation bars, copyright information, site logos, or search forms.


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<main> 6.0 12.0 4.0 5.0 11.1

Differences Between HTML 4.01 and HTML5

The <main> tag is new in HTML5.

❮ Att Tr Align Tag Aside ❯