Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
fixed main element definition
Browse files Browse the repository at this point in the history
  • Loading branch information
stevefaulkner committed Jan 20, 2016
1 parent 3e2955e commit d808a3d
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions sections/semantics.include
Original file line number Diff line number Diff line change
Expand Up @@ -5495,8 +5495,7 @@
</dd>
</dl>

The <{main}> element can be used as a container for the dominant contents of another
element. It <a>represents</a> its children.
The <{main}> element <a>represents</a> the main content of the body of a document or application.

<p class="note">
The <{main}> element is not <a>sectioning content</a> and has no effect on the document
Expand All @@ -5507,13 +5506,6 @@
information, site logos and banners and search forms (unless the document or applications main
function is that of a search form).

<p class="note">
There is no restriction as to the number of <{main}> elements in a document. Indeed,
there are many cases where it would make sense to have multiple <{main}> elements. For
example, a page with multiple <{article}> elements might need to indicate the dominant
contents of each such element.
</p>

Authors must not include the <{main}> element as a descendant of an <{article}>,
<{aside}>, <{footer}>, <code>header</code> or <{nav}> element.

Expand All @@ -5524,19 +5516,6 @@
[[#grouping-content]] or <a>sectioning content</a> element as appropriate.
</p>

<p class="note">
Authors are advised to use ARIA <code>role="main"</code> attribute on the <code>main</code>
element until user agents implement the required role mapping.
</p>

<div class="example">
<pre highlight="html">
&lt;main role="main"&gt;
...
&lt;/main&gt;
</pre>
</div>

In the following example, we see 2 articles about skateboards (the main topic of a Web page) the
main topic content is identified by the use of the <{main}> element.

Expand Down

0 comments on commit d808a3d

Please sign in to comment.