Revision 1854 of <small>

  • Revision slug: HTML/Element/small
  • Revision title: small
  • Revision id: 1854
  • Created:
  • Creator: Jscher2000
  • Is current revision? No
  • Comment /* HTML Small Element */

Revision Content

HTML Small Element

<small>...</small> - The HTML Small element makes the text font size one size smaller (for example, from large to medium, or from small to x-small) down to the browser's minimum font size.

Example 1

   <p>
       This is the first sentence.  <small>This whole 
       sentence is in small letters.</small>
   </p>

Result

This is the first sentence. This whole sentence is in small letters.

Example 2 (CSS alternative)

   <p>
       This is the first sentence.  <span style="font-size:0.8em">This whole 
       sentence is in small letters.</span>
   </p>

Result

This is the first sentence. This whole sentence is in small letters.

Notes

Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of style sheets.

See also

{{ HTML:Element_Navigation() }}

{{ languages( { "pl": "pl/HTML/Element/small" } ) }}

Revision Source

<h2 name="HTML_Small_Element"> HTML Small Element </h2>
<p><b>&lt;small&gt;...&lt;/small&gt;</b> - The HTML Small element makes the text <i>font size</i> one size smaller (for example, from large to medium, or from small to x-small) down to the browser's minimum font size.
</p>
<h3 name="Example_1"> Example 1 </h3>
<pre class="eval">   &lt;p&gt;
       This is the first sentence.  &lt;small&gt;This whole 
       sentence is in small letters.&lt;/small&gt;
   &lt;/p&gt;
</pre>
<h4 name="Result"> Result </h4> <p> This is the first sentence. <small>This whole sentence is in small letters.</small> </p>
<h3 name="Example_2_.28CSS_alternative.29"> Example 2 (CSS alternative) </h3>
<pre class="eval">   &lt;p&gt;
       This is the first sentence.  &lt;span style="font-size:0.8em"&gt;This whole 
       sentence is in small letters.&lt;/span&gt;
   &lt;/p&gt;
</pre>
<h4 name="Result_2"> Result </h4> <p> This is the first sentence. <span style="font-size:0.8em">This whole sentence is in small letters.</span> </p>
<h3 name="Notes"> Notes </h3>
<p>Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of style sheets.
</p>
<h3 name="See_also"> See also </h3>
<ul><li> <a href="en/HTML/Element/big">HTML Big Element</a>
</li><li> <a href="en/HTML/Element/font">HTML Font Element</a>
</li><li> <a href="en/HTML/Element/style">HTML Style Element</a>
</li><li> HTML 4.01 Specification: <a class="external" href="http://www.w3.org/TR/html4/present/graphics.html#h-15.2">Font Styles</a>
</li></ul>
<p>{{ HTML:Element_Navigation() }}
</p>{{ languages( { "pl": "pl/HTML/Element/small" } ) }}
Revert to this revision