<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML5 Doctor &#187; small</title>
	<atom:link href="http://html5doctor.com/tag/small/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Wed, 16 May 2012 11:31:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>The small &amp; hr elements</title>
		<link>http://html5doctor.com/small-hr-element/</link>
		<comments>http://html5doctor.com/small-hr-element/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 13:58:55 +0000</pubDate>
		<dc:creator>Oli Studholme</dc:creator>
				<category><![CDATA[Elements]]></category>
		<category><![CDATA[hr]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[small]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=1506</guid>
		<description><![CDATA[<p>Two more HTML4 presentational elements that have undergone transmogrification to have semantics in HTML5 are <code>&#60;small&#62;</code> and <code>&#60;hr&#62;</code></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://html5doctor.com/i-b-em-strong-element/" title="The i, b, em, &amp; strong elements | HTML5 Doctor">We recently examined <code>&lt;i&gt;</code> and <code>&lt;b&gt;</code></a>, presentational HTML4 elements that have been given a new lease on semantic life. Two more elements that have undergone transmogrification to receive semantics in HTML5 are <code>&lt;small&gt;</code> and <code>&lt;hr&gt;</code>:</p>

<ul>
<li><strong><code>&lt;small&gt;</code></strong> — was for smaller text, now used for <em>side comments and small print</em> (<a href="http://dev.w3.org/html5/markup/small.html" title="HTML5: small – small print (CHANGED)">W3C:Markup</a>, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-small-element" title="4.6 Text-level semantics — HTML5 (including next generation additions still in development)">WHATWG</a>)</li>
<li><strong><code>&lt;hr&gt;</code></strong> — was horizontal rule, now used for <em>a paragraph-level thematic break</em> in text (<a href="http://dev.w3.org/html5/markup/hr.html" title="HTML5: hr – thematic break (CHANGED)">W3C:Markup</a>, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-hr-element" title="4.5 Grouping content — HTML5 (including next generation additions still in development)">WHATWG</a>)</li>
</ul>

<section id="element-small">
<h2>The <code>&lt;small&gt;</code> element</h2>

<blockquote>
<p>The small element represents so-called “small print” such as legal disclaimers and caveats.</p>
<footer><cite><a href="http://dev.w3.org/html5/markup/small.html" title="HTML5: small &#8211; small print (CHANGED)">W3C specification</a></cite></footer>
</blockquote>

<p><code>&lt;small&gt;</code> is now for <em>side comments</em>, which are the inline equivalent of <a href="http://html5doctor.com/understanding-aside/" title="Understanding aside | HTML5 Doctor"><code>&lt;aside&gt;</code></a> — content which is not the main focus of the page. A common example is inline legalese, such as a copyright statement in a page footer, a disclaimer, or licensing information. It can also be used for attribution. <strong>Don’t use it for block-level content</strong> (paragraphs, lists, etc.), as this would be considered main content.</p>

<figure>
<img src="http://html5doctor.com/wp-content/uploads/2010/03/small-license.png" alt="Using the small element for license information" title="Font license" width="524" height="36" class="alignnone size-full wp-image-1510" />
<figcaption>Using <code>&lt;small class="font-license"&gt;</code> to fulfill the requirements of a font license agreement</figcaption>
</figure>

<figure>
<blockquote><p><code>&lt;small&gt;&lt;a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-alike license&lt;/a&gt;&lt;/small&gt;</code></p></blockquote>
<figcaption>Using <code>&lt;small&gt;</code> around a <a href="http://creativecommons.org/choose/" title="Choose a License">Creative Commons license</a> link with <code>rel="license"</code></figcaption>
</figure>

<p><code>&lt;small&gt;</code> text does not need to be smaller than surrounding text — if all you want is smaller text use CSS instead. Use <code>&lt;small&gt;</code> only on inline content. Finally, <code>&lt;small&gt;</code> doesn’t affect the semantics of <code>&lt;em&gt;</code> or <code>&lt;strong&gt;</code>.</p>
</section>

<section id="element-hr">
<h2>The <code>&lt;hr&gt;</code> element</h2>

<blockquote>
<p>The hr element represents a paragraph-level thematic break.</p>
<footer><cite><a href="http://dev.w3.org/html5/markup/hr.html" title="HTML5: hr — thematic break (CHANGED)">W3C specification</a></cite></footer>
</blockquote>

<p><del datetime="2010-03-31T10:43:57+09:00">The “paragraph-level” bit means between <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#paragraph" title="3.2.5 Content models — HTML5 (including next generation additions still in development)">blocks of text</a>, so it can’t be used to separate sections of a site. Instead, <code>&lt;hr&gt;</code> now separates different topics within a section of prose, or between scenes in a novel.</del> <ins datetime="2010-03-31T11:00:02+09:00">After checking with Hixie I found I misinterpreted the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#paragraph" title="3.2.5 Content models — HTML5 (including next generation additions still in development)">paragraph content model</a> (we regret the error!). I learned <code>&lt;hr&gt;</code> actually means <q cite="http://krijnhoetmer.nl/irc-logs/whatwg/20100331#l-169">end of one section, start of another</q>, which is the same semantically as <code>&lt;/section&gt;&lt;section&gt;</code>. Because elements like <code>&lt;section&gt;</code> already indicate this intrinsically, <code>&lt;hr&gt;</code> is more for thematic breaks, such as separating different topics within a section of prose, or between scenes in a novel. However you can use it anywhere you can use a <code>&lt;p&gt;</code>.</ins> While not widely used these days (given the dull default browser renderings), it can be replaced via CSS with an image:</p>

<figure>
<a href="http://oli.jp/example/speckled-band/"><img src="http://html5doctor.com/wp-content/uploads/2010/03/hr-separator.png" alt="Horizontal rule (hr) separator, replaced using CSS with a background image" title="Horizontal rule separator" width="432" height="228" class="alignnone size-full wp-image-1511" /></a>
<figcaption>Style <code>&lt;hr&gt;</code> by removing borders and adding margins &amp; a background image using CSS. For example;<br />
<code>hr {height: 24px; background: url('flourish.png') no-repeat 50% 50%; margin: 3em 0; border: 0;}</code></figcaption>
</figure>

<p>IE7 and lower live up to reputation by adding a border around the image regardless, but <a href="http://blog.neatlysliced.com/2008/03/hr-image-replacement/" title="HR Image Replacement &rsaquo; Neatly Sliced">this can often be worked around</a>. Alternatively you can just hide it via an IE7-and-lower stylesheet. Use a CSS border or background image on another element instead if the transition is obvious (for example between weblog comments), or the intended use is solely presentational.</p>
<figure>
<a href="http://corkd.com/"><img src="http://html5doctor.com/wp-content/uploads/2010/03/corkd.png" alt="Cork’d title with decorative background image" title="A stylish title on Cork’d (thanks Lindsay!)" width="240" height="60" class="alignnone size-full wp-image-1512" /></a>
<figcaption><a href="http://corkd.com/" title="Cork'd | The new way to review, share and discuss wine.">Cork’d.com</a> uses a decorative CSS background image on titles. This would <strong>not</strong> be a good place to use <code>&lt;hr&gt;</code>.</figcaption>
</figure>
</section>

<section id="summary">
<h2>In summary</h2>
<p>When HTML4 was released, the presentational elements <code>&lt;basefont&gt;</code>, <code>&lt;font&gt;</code>, <code>&lt;s&gt;</code>, <code>&lt;strike&gt;</code>, and <code>&lt;u&gt;</code> were already deprecated in favour of CSS. HTML5 completes this by removing <code>&lt;big&gt;</code> and <code>&lt;tt&gt;</code>.</p>

<p>The remaining HTML4 presentational elements — the long-ignored <code>&lt;small&gt;</code> and <code>&lt;hr&gt;</code> elements (along with <a href="http://html5doctor.com/i-b-em-strong-element/" title="The i, b, em, &amp; strong elements | HTML5 Doctor"><code>&lt;i&gt;</code> and <code>&lt;b&gt;</code> from last week</a>) — have been redefined in HTML5 with useful, media-independent semantics that relate to their typical use. Will <em>you</em> be using them? Let us know in the comments!</p>
</section><div id="crp_related"><h3>Related Posts:</h3><ul class="related"><li><a href="http://html5doctor.com/the-figure-figcaption-elements/" rel="bookmark" class="crp_title">The figure &#038; figcaption elements</a></li><li><a href="http://html5doctor.com/i-b-em-strong-element/" rel="bookmark" class="crp_title">The i, b, em, &amp; strong elements</a></li><li><a href="http://html5doctor.com/html5-simplequiz-6-zeldmans-fat-footer/" rel="bookmark" class="crp_title">HTML5 Simplequiz 6: Zeldman&#8217;s fat footer</a></li><li><a href="http://html5doctor.com/html-5-reset-stylesheet/" rel="bookmark" class="crp_title">HTML5 Reset Stylesheet</a></li><li><a href="http://html5doctor.com/html5-simplequiz-4-figures-captions-and-alt-text/" rel="bookmark" class="crp_title">HTML5 Simplequiz #4: figures, captions and alt text</a></li></ul></div><p><a href="http://html5doctor.com/small-hr-element/" rel="bookmark">The small &amp; hr elements</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on March 16, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/small-hr-element/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>

