SyntaxStudy
Sign Up

<main>

tag HTML5

Represents the dominant content of the <body>. There must be only one <main> per page.

Syntax

<main> ... </main>

Example

html
<body>
    <header>...</header>
    <main>
        <h1>Welcome</h1>
        <p>Main content of the page.</p>
    </main>
    <footer>...</footer>
</body>