Skip to content

Commit

Permalink
[e] (0) Give an example of why <main> might be used multiple times in…
Browse files Browse the repository at this point in the history
… a document.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8748 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 4, 2014
1 parent 7d2f817 commit af35998
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion complete.html
Expand Up @@ -13351,11 +13351,16 @@ <h4 id=the-main-element>4.4.13 The <dfn><code>main</code></dfn> element</h4>
<code id=the-main-element:the-article-element><a href=#the-article-element>article</a></code> elements in that the <code id=the-main-element:the-main-element-3><a href=#the-main-element>main</a></code> element does not contribute to the
document <a href=#outline id=the-main-element:outline>outline</a>.</p>

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

<div class=example>

<p>In this example, the author has used a presentation where each component of the page is
rendered in a box. To wrap the main content of the page (as opposed to the header, the footer,
the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> element is used.</p>
the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-6><a href=#the-main-element>main</a></code> element is used.</p>

<pre>&lt;!DOCTYPE html>
&lt;title>RPG System 17&lt;/title>
Expand Down
7 changes: 6 additions & 1 deletion index
Expand Up @@ -13351,11 +13351,16 @@ included with Exhibit B.
<code id=the-main-element:the-article-element><a href=#the-article-element>article</a></code> elements in that the <code id=the-main-element:the-main-element-3><a href=#the-main-element>main</a></code> element does not contribute to the
document <a href=#outline id=the-main-element:outline>outline</a>.</p>

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

<div class=example>

<p>In this example, the author has used a presentation where each component of the page is
rendered in a box. To wrap the main content of the page (as opposed to the header, the footer,
the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> element is used.</p>
the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-6><a href=#the-main-element>main</a></code> element is used.</p>

<pre>&lt;!DOCTYPE html>
&lt;title>RPG System 17&lt;/title>
Expand Down
5 changes: 5 additions & 0 deletions source
Expand Up @@ -18647,6 +18647,11 @@ included with Exhibit B.
<code>article</code> elements in that the <code>main</code> element does not contribute to the
document <span>outline</span>.</p>

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

<div class="example">

<p>In this example, the author has used a presentation where each component of the page is
Expand Down

0 comments on commit af35998

Please sign in to comment.