HTML - tags - <main>

#79 of 147
main

 <html>
 <body>
     <main>
         <article>
             <h1>heading1</h1>
             <p>content1</p>
         </article>
         <article>
             <h1>heading2</h1>
             <p>content2</p>
         </article>
     </main>
 </body>
 </html>
 

The main element represents the primary content of the page.

A live example:


heading1

content1

heading2

content2


1 of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath