Skip to content

Commit

Permalink
[e] (0) Describe how to do footnotes in tables.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3345 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 1, 2009
1 parent 0149794 commit 28d50b8
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions index
Expand Up @@ -16364,6 +16364,45 @@ brighter. A &lt;b&gt;rat&lt;/b&gt; scurries past the corner wall.&lt;/p&gt;</pre

</div>

<p>For figures or tables, footnotes can be included in the relevant
<code><a href=#the-legend-element>legend</a></code> or <code><a href=#the-caption-element>caption</a></code> element, or in
surrounding prose.</p>

<div class=example>

<p>In this example, a <!-- round --> table has cells with footnotes
that are given in prose. A <code><a href=#the-figure-element>figure</a></code> element is used to
give a single legend to the combination of the table and its
footnotes.</p>

<pre>&lt;figure&gt;
&lt;legend&gt;Table 1. Alternative activities for knights.&lt;/legend&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Activity
&lt;th&gt; Location
&lt;th&gt; Cost
&lt;tr&gt;
&lt;td&gt; Dance
&lt;td&gt; Wherever possible
&lt;td&gt; &pound;0&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt;
&lt;tr&gt;
&lt;td&gt; Routines, chorus scenes&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;
&lt;td&gt; Undisclosed
&lt;td&gt; Undisclosed
&lt;tr&gt;
&lt;td&gt; Dining&lt;sup&gt;&lt;a href="#fn3"&gt;3&lt;/a&gt;&lt;/sup&gt;
&lt;td&gt; Camelot
&lt;td&gt; Cost of ham, jam, and spam&lt;sup&gt;&lt;a href="#fn4"&gt;4&lt;/a&gt;&lt;/sup&gt;
&lt;/table&gt;
&lt;p id="fn1"&gt;1. Assumed.&lt;/p&gt;
&lt;p id="fn2"&gt;2. Footwork impeccable.&lt;/p&gt;
&lt;p id="fn3"&gt;3. Quality described as "well".&lt;/p&gt;
&lt;p id="fn4"&gt;4. A lot.&lt;/p&gt;
&lt;/figure&gt;</pre>

</div>



<h3 id=edits><span class=secno>4.7 </span>Edits</h3>
Expand Down
39 changes: 39 additions & 0 deletions source
Expand Up @@ -17455,6 +17455,45 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>

</div>

<p>For figures or tables, footnotes can be included in the relevant
<code>legend</code> or <code>caption</code> element, or in
surrounding prose.</p>

<div class="example">

<p>In this example, a <!-- round --> table has cells with footnotes
that are given in prose. A <code>figure</code> element is used to
give a single legend to the combination of the table and its
footnotes.</p>

<pre>&lt;figure>
&lt;legend>Table 1. Alternative activities for knights.&lt;/legend>
&lt;table>
&lt;tr>
&lt;th> Activity
&lt;th> Location
&lt;th> Cost
&lt;tr>
&lt;td> Dance
&lt;td> Wherever possible
&lt;td> &#x00A3;0&lt;sup>&lt;a href="#fn1">1&lt;/a>&lt;/sup>
&lt;tr>
&lt;td> Routines, chorus scenes&lt;sup>&lt;a href="#fn2">2&lt;/a>&lt;/sup>
&lt;td> Undisclosed
&lt;td> Undisclosed
&lt;tr>
&lt;td> Dining&lt;sup>&lt;a href="#fn3">3&lt;/a>&lt;/sup>
&lt;td> Camelot
&lt;td> Cost of ham, jam, and spam&lt;sup>&lt;a href="#fn4">4&lt;/a>&lt;/sup>
&lt;/table>
&lt;p id="fn1">1. Assumed.&lt;/p>
&lt;p id="fn2">2. Footwork impeccable.&lt;/p>
&lt;p id="fn3">3. Quality described as "well".&lt;/p>
&lt;p id="fn4">4. A lot.&lt;/p>
&lt;/figure></pre>

</div>



<h3>Edits</h3>
Expand Down

0 comments on commit 28d50b8

Please sign in to comment.