< All the HTML Tags >

<main></main>

Video Coming Soon...

  • main

    Tag Type

    block

    Tag Category

    document structure

    Defines the main content of a document

    Viewed

    1

    Examples

    1

Definition:

The HTML <main> tag is used to encapsulate the dominant content of the <body>, excluding headers, footers, and navigation links.

This tag enhances semantic structure, making it easier for screen readers and search engines to identify the primary content of a webpage. It should only be used once per page.

Using the `<main>` tag correctly improves accessibility and helps to create a clear content hierarchy.

Attributes:

Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default main Example:

Using the <main> tag for primary content.
<main><p>Main content</p></main>

Default main Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…