<?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>Webmonkey &#187; Simplequiz</title>
    <atom:link href="http://www.webmonkey.com/tag/simplequiz/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Mon, 06 May 2013 17:29:19 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>HTML5 Simplequiz: The Complexities of the Cite Tag</title>
        <link>http://www.webmonkey.com/2010/10/html5-simplequiz-the-complexities-of-the-cite-tag/</link>
        <comments>http://www.webmonkey.com/2010/10/html5-simplequiz-the-complexities-of-the-cite-tag/#comments</comments>
        <pubDate>Tue, 12 Oct 2010 18:33:48 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=48944</guid>
        		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Simplequiz]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2010/10/HTML5doctor.png" type="image/png" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2010/10/HTML5doctor.png" alt="HTML5 Simplequiz: The Complexities of the Cite Tag" /></div>The latest installment in HTML5Doctor&#8217;s Simplequiz &#8212; part of a series of &#8220;tests&#8221; designed to help you understand HTML5 and how to use it &#8212; delves into what might be the most controversial change in HTML5: the cite tag. The question in the quiz seems simple: given a passage by an author, how do you [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><a href="http://www.webmonkey.com/wp-content/uploads/2010/10/HTML5doctor.png"><img src="http://www.webmonkey.com/wp-content/uploads/2010/10/HTML5doctor-300x85.png" alt="" title="HTML5doctor" width="300" height="85" class="alignleft size-medium wp-image-48948" /></a>The latest installment in HTML5Doctor&#8217;s Simplequiz &#8212; part of <a href="http://www.webmonkey.com/2010/09/test-your-markup-smarts-with-html5-simplequiz/">a series of &#8220;tests&#8221;</a> designed to help you understand HTML5 and how to use it &#8212; delves into what might be the most controversial change in HTML5: the cite tag.</p>
<p>The <a href="http://html5doctor.com/html5-simplequiz-2-citing-people/">question in the quiz</a> seems simple: given a passage by an author, how do you mark up the author&#8217;s name? The possible answers are, using the <code>&lt;b&gt;</code> tag, the <code>&lt;i&gt;</code> tag, a span tag, the <code>&lt;cite&gt;</code> or nothing at all.</p>
<p>There&#8217;s something of a trick lurking in those answers, because if you&#8217;re familiar with HTML as it&#8217;s been applied for the last decade, you&#8217;d probably pick <code>&lt;cite&gt;</code>. In HTML 4.01, <a href="http://www.w3.org/TR/html401/struct/text.html#edef-CITE">the cite tag</a> is &#8220;intended to give information about the source from which the quotation was borrowed.&#8221; Source is somewhat ambiguous, but most of us would assume that a person could be the source of a quote, thus, wrapping their name in a cite tag makes perfect sense.</p>
<p>In HTML5, however, the spec is not ambiguous and <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-cite-element">clearly says</a>: &#8220;the cite element represents the title of a work&#8230; a person&#8217;s name is not the title of a work &#8212; even if people call that person a piece of work &#8212; and the element must therefore not be used to mark up people&#8217;s names.&#8221;</p>
<p>So, while the cite tag might have been a possible answer to the question of how you should mark up an author&#8217;s name in HTML 4.01. it clearly is not in HTML5.</p>
<p>I know what you&#8217;re thinking, HTML5 is supposed to be backwards-compatible with previous versions of HTML. So what&#8217;s up with redefining the cite tag? Well, there&#8217;s a good chance that <a href="http://wiki.whatwg.org/wiki/Cite_element#original_intent_of_cite_element">the authors of HTML 4 meant what the authors of HTML5 actually wrote</a>, but that doesn&#8217;t change that fact that there are probably millions of cases on pages around the web where <code>&lt;cite&gt;</code> will suddenly be wrong. So much for backward compatibility.</p>
<p>As web developer Jeremy Keith has <a href="http://24ways.org/2009/incite-a-riot">pointed out</a>, it&#8217;s actually much worse than it looks at first glance. Not only is cite no longer an option for peoples names, the HTML5 spec suggests that <code>&lt;b&gt;</code> might be appropriate to mark up author&#8217;s name. As Keith says, &#8220;we are seriously being told to use semantically meaningless elements to mark up content that is semantically meaningful.&#8221;</p>
<p>Keith calls for users to reject HTML5&#8242;s definition of <code>&lt;cite&gt;</code> and there&#8217;s a page on the WHATWG wiki that <a href="http://wiki.whatwg.org/wiki/Cite_element">tracks the usage of <code>&lt;cite&gt;</code> in the wild</a> to attempt to prove that HTML5&#8242;s change is ill-advised. Given that the default WordPress theme uses <code>&lt;cite&gt;</code> to mark up the names of blog commenters, there&#8217;s no shortage of examples.</p>
<p>However, given that Keith&#8217;s article dates from 2009 and there have been no major changes to the <code>&lt;cite&gt;</code> tag since, his may be a losing battle.</p>
<p>As for the HTML5 Simplequiz question, well, I&#8217;d use the <code>&lt;cite&gt;</code> tag. But I&#8217;d do so knowing I was trading valid code for more semantically meaningful content and, while that may not be &#8220;correct,&#8221; I can live with it. I&#8217;d just pair it with a little CSS to get rid of the browser&#8217;s default use of italics for <code>&lt;cite&gt;</code>.</p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2010/09/test-your-markup-smarts-with-html5-simplequiz/">Test Your Markup Smarts With HTML5 Simplequiz</a></li>
<li><a href="http://www.webmonkey.com/2010/09/microdata-html5s-best-kept-secret/">Microdata: HTML5&#8242;s Best-Kept Secret</a></li>
<li><a href="http://www.webmonkey.com/2010/10/damn-the-w3c-html5-is-already-here/">Damn the W3C, HTML5 Is Already Here</a></li>
<li><a href="http://www.webmonkey.com/2010/09/modernizr-collects-html5-fallbacks-for-older-browsers/">Modernizr Collects HTML5 Fallbacks for Older Browsers</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/10/html5-simplequiz-the-complexities-of-the-cite-tag/feed/</wfw:commentRss>
        <slash:comments>2</slash:comments>

        
    </item>
    </channel>
</rss>
