Skip to content

Commit

Permalink
[a] (0) Tweak examples for <sub>/<sup> to be less specific about the …
Browse files Browse the repository at this point in the history
…semantics of <sub> with <var>.

git-svn-id: http://svn.whatwg.org/webapps@3638 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 16, 2009
1 parent 91e04fe commit fe119b3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
26 changes: 15 additions & 11 deletions index
Expand Up @@ -16284,17 +16284,6 @@ Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SM
<em>absence</em> of those elements would change the meaning of the
content.</p>

<p>When the <code><a href=#the-sub-and-sup-elements>sub</a></code> element is used inside a
<code><a href=#the-var-element>var</a></code> element, it represents the subscript that
identifies the variable in a family of variables.</p>

<div class=example>
<pre>&lt;p&gt;The coordinate of the &lt;var&gt;i&lt;/var&gt;th point is
(&lt;var&gt;x&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;&lt;/var&gt;, &lt;var&gt;y&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;&lt;/var&gt;).
For example, the 10th point has coordinate
(&lt;var&gt;x&lt;sub&gt;10&lt;/sub&gt;&lt;/var&gt;, &lt;var&gt;y&lt;sub&gt;10&lt;/sub&gt;&lt;/var&gt;).&lt;/p&gt;</pre>
</div>

<p>In certain languages, superscripts are part of the typographical
conventions for some abbreviations.</p>

Expand All @@ -16304,6 +16293,21 @@ For example, the 10th point has coordinate
&lt;span lang="fr"&gt;&lt;abbr&gt;M&lt;sup&gt;me&lt;/sup&gt;&lt;/abbr&gt; Denise&lt;/span&gt;.&lt;/p&gt;</pre>
</div>

<p>The <code><a href=#the-sub-and-sup-elements>sub</a></code> element can be used inside a
<code><a href=#the-var-element>var</a></code> element, for variables that have subscripts.</p>

<div class=example>

<p>Here, the <code><a href=#the-sub-and-sup-elements>sub</a></code> element is used to represents the
subscript that identifies the variable in a family of
variables:</p>

<pre>&lt;p&gt;The coordinate of the &lt;var&gt;i&lt;/var&gt;th point is
(&lt;var&gt;x&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;&lt;/var&gt;, &lt;var&gt;y&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;&lt;/var&gt;).
For example, the 10th point has coordinate
(&lt;var&gt;x&lt;sub&gt;10&lt;/sub&gt;&lt;/var&gt;, &lt;var&gt;y&lt;sub&gt;10&lt;/sub&gt;&lt;/var&gt;).&lt;/p&gt;</pre>
</div>

<p>Mathematical expressions often use subscripts and superscripts.
Authors are encouraged to use MathML for marking up mathematics, but
authors may opt to use <code><a href=#the-sub-and-sup-elements>sub</a></code> and <code><a href=#the-sub-and-sup-elements>sup</a></code> if
Expand Down
26 changes: 15 additions & 11 deletions source
Expand Up @@ -17399,17 +17399,6 @@ Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SM
<em>absence</em> of those elements would change the meaning of the
content.</p>

<p>When the <code>sub</code> element is used inside a
<code>var</code> element, it represents the subscript that
identifies the variable in a family of variables.</p>

<div class="example">
<pre>&lt;p>The coordinate of the &lt;var>i&lt;/var>th point is
(&lt;var>x&lt;sub>&lt;var>i&lt;/var>&lt;/sub>&lt;/var>, &lt;var>y&lt;sub>&lt;var>i&lt;/var>&lt;/sub>&lt;/var>).
For example, the 10th point has coordinate
(&lt;var>x&lt;sub>10&lt;/sub>&lt;/var>, &lt;var>y&lt;sub>10&lt;/sub>&lt;/var>).&lt;/p></pre>
</div>

<p>In certain languages, superscripts are part of the typographical
conventions for some abbreviations.</p>

Expand All @@ -17419,6 +17408,21 @@ For example, the 10th point has coordinate
&lt;span lang="fr">&lt;abbr>M&lt;sup>me&lt;/sup>&lt;/abbr> Denise&lt;/span>.&lt;/p></pre>
</div>

<p>The <code>sub</code> element can be used inside a
<code>var</code> element, for variables that have subscripts.</p>

<div class="example">

<p>Here, the <code>sub</code> element is used to represents the
subscript that identifies the variable in a family of
variables:</p>

<pre>&lt;p>The coordinate of the &lt;var>i&lt;/var>th point is
(&lt;var>x&lt;sub>&lt;var>i&lt;/var>&lt;/sub>&lt;/var>, &lt;var>y&lt;sub>&lt;var>i&lt;/var>&lt;/sub>&lt;/var>).
For example, the 10th point has coordinate
(&lt;var>x&lt;sub>10&lt;/sub>&lt;/var>, &lt;var>y&lt;sub>10&lt;/sub>&lt;/var>).&lt;/p></pre>
</div>

<p>Mathematical expressions often use subscripts and superscripts.
Authors are encouraged to use MathML for marking up mathematics, but
authors may opt to use <code>sub</code> and <code>sup</code> if
Expand Down

0 comments on commit fe119b3

Please sign in to comment.