Skip to content
Permalink
Browse files

[e] (0) Give an example of why <main> might be used multiple times in…

… 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 af3599895c0c6f289c4f8e745c19a8b57d79cde9
Showing with 17 additions and 2 deletions.
  1. +6 −1 complete.html
  2. +6 −1 index
  3. +5 −0 source
<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>
7 index
<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>
5 source
<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

0 comments on commit af35998

Please sign in to comment.
You can’t perform that action at this time.