From W3C Wiki
< HTML‎ | Elements
Jump to: navigation, search


The <main> element represents the main content of the body of a document or application.


  • The <main> element is not sectioning content and has no effect on the document outline.
  • There must be only one <main> element per page.

HTML Attributes

See global attributes.


[try it]

<!DOCTYPE html>
 <title>Chapter 2 - My eBook</title>
 <header>My eBook
   <ul role="directory">
    <li><a rel="prev" href="1.html">Chapter 1</a></li>
    <li><a>Chapter 2</a></li>
    <li><a rel="next" href="3.html">Chapter 3</a></li>

  <h1>Chapter 2</h1>
  <p>Once upon a time again...</p>

 <footer><small>Copyright 2014 Jane Doe</small></footer>

HTML Reference

The <main> element was introduced in HTML5 - 4.5.14 The main element.