<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Semantic Markup &amp; Microformats</title>
	<atom:link href="http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/</link>
	<description>Just my little corner</description>
	<pubDate>Thu, 18 Mar 2010 18:40:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	</channel>
</rss>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>tjameswhite &raquo; Semantic Markup &amp; Microformats</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	
	<meta name="author" content="Tim White, tjameswhite" />
	<meta name="copyright" content="2007, Tim White" />
	
	<meta name="microid" content="4b2955052e13a2b7d717ceb9c2f368b03f7c7324" />
	
	<style type="text/css">
	@import url(/css/main.css);
	/*<![CDATA[*/
	
	/*for Library Thing plugin in the sidebar */
	.LTwrapper {
		
	}
	
	.LTheader {
		
	}
	
	.LTitem, .LTprovided {
		clear: both;
	}
	.LTitem img {
		float: left;
		width: 50px;
		margin: 0 .5em .5em 0;
	}
	
	.LTprovided {
		font-size: 90%;
	}
	/*]]>*/
	</style>
</head>

<body>
<div id="container">
<div id="header" >
<h1 class="parrot"><a href="/index.php">tjameswhite.com</a></h1>
<ul id="navlist"><li><a href="http://www.tjameswhite.com" title="Homepage">Home</a></li>
<li class="here"><a href="/blog/" title="Tao Te Blog">Blog</a></li>
<li><a href="/photos" title="Photo albums">Photos</a></li>
<li><a href="/about" title="About this site">About</a></li>
<li><a href="/contact/" title="Contact Form">Contact</a></li>
</ul>
</div>


<div id="content">

<!-- WordPress code begins -->

<!-- get the date and time -->
<h3 class="postdate">Thursday, 7/14/2005 &#8211; 8:26 pm</h3>
	
<!-- get the content of the post -->
<div class="post">
	 <h2 class="storytitle" id="post-338"><a href="http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/" rel="bookmark" title="Permanent Link: Semantic Markup &amp; Microformats">Semantic Markup &amp; Microformats</a></h2>

	
	<div class="storycontent">
		<h3>Beginning with Standards</h3>
<p>During the past year I&#8217;ve become interested in using web standards and semantic markup. The idea  is to separate content from presentation. For example, I have followed a variety of holy wars over the use of <code>&lt;i&gt;</code> (italics) and <code>&lt;em&gt;</code> (emphasis) elements. Italics are presentations, emphasis describes the content.  The <code>&lt;i&gt;</code> element has been depreciated in favor of <code>&lt;em&gt;</code>, but that leaves a few things hanging. For instance, how should I code a book or movie title?</p>
<p>I follow the convention that book titles should be italicized, eg. <i>The Stars My Destination</i>. But if <code>&lt;i&gt;</code> has been depreciated, that leaves <code>&lt;em&gt;</code>, which isn&#8217;t the correct choice &#8212; I&#8217;m not emphasizing the title, I just want to note that it <strong>is</strong> a book title.<span id="more-338"></span></p>
<p>So far I&#8217;ve just been talking about a visual distinction. But, as I mentioned at the beginning, I should be separating content from presentation &#8212; as well as adding meaning to that content. So, how is a machine to distinguish a book title from the rest of the content? Presumably the <code>&lt;cite&gt;</code> element, which is <a href="http://www.w3.org/TR/REC-html40/struct/text.html#edef-CITE">vaguely defined</a> as &quot;[c]ontains a citation or a reference to other sources.&quot; While I&#8217;m not convinced that a passing reference to a book constitutes a citation, it is better than using <code>&lt;em&gt;</code> or hacking up a meaningless <code>&lt;span&gt;</code>.</p>
<p>The next problem is that, by default, <code>&lt;cite&gt;</code> renders it&#8217;s content in italics. I prefer following <a href="http://www.mla.org/">MLA</a> <a href="http://www.liu.edu/cwis/cwp/library/workshop/citmla.htm">style</a>, which calls for books, movies, plays, etc. to be italicize (or underlined), while articles, short stories, poems, etc. are quoted: <i>The Stars My Destination</i> (a novel), <i>Fences</i> (a play), <i>Close Encounters of the Third Kind</i> (a movie), &quot;The Tyger&quot; (a poem), &quot;Bastille  Day&quot; (a song), etc. Clearly a basic <code>&lt;cite&gt;</code> element won&#8217;t work for all of these variations.</p>
<p>Additionally, at work I have to use <a href="http://www.ap.org/">AP</a> style for marking up works. AP has a number of quirks, beginning with no italics. Additionally, books, movies, plays, poems, etc. are capitalized and quoted; reference works are not quoted, nor receive any other distinguishing marks.</p>
<p>So, with different types of works and different style guidelines, the <code>&lt;cite&gt;</code> element as-is simply won&#8217;t suffice. We&#8217;ll need to add some classes in order to distinguish types of work. This will give us hooks for styling &#8212; <code>&lt;cite class=&quot;book&quot;&gt;</code> can be italicized or underlined, <code>&lt;cite class=&quot;poem&quot;&gt;</code> would be render normal and even have quotes automatically added around it (at least in CSS 2 compliant browsers). Of course, if you need to follow AP or other style, changing just a couple of properties in the style sheet will take care of that. In the end, we&#8217;ve managed to visually style elements to our desire and added a bit of meaning.</p>
<h3>Enter Microformats</h3>
<p>With the advent of <a href="http://www.microformats.org/">microformats</a>, I now see a way to add more meaning to the classes I would have used simply for styling purposes.  We can add meaningful values the <code>&lt;cite&gt;</code> (or other) element that indexers and others can make use of, all without adding, changing or otherwise hacking existing (X)HTML.</p>
<p><a href="http://dougal.gunters.org/">Dougal Campbel</a>l brought up the idea of a microformat for music tracks and other media on the microformats mailing list. I gather that there are others interested in this as well.</p>
<p>His idea goes far beyond what I was thinking (he mentions track name, running time, etc., ala ID3 tags) and that&#8217;s a good thing. Mention has been made of coming up with a format that would capture ISBN, author, editor, pages, etc. for books, magazines, et al. I&#8217;d like to see this microformat get created, as long as it is done in a modular format.</p>
<p>In other words, Amazon.com could use the full format for marking up books, but in a blog entry, I can use just a minimum of mark up to distinguish that I&#8217;m referring to a book; i.e. <code>&lt;cite class=&quot;scific novel&quot;&gt;</code>The Stars My Destination<code>&lt;/cite&gt;</code>.</p>
<p>I&#8217;d also like to keep it element independent. In other words, I may implement this using the <code>&lt;cite&gt;</code> element, but if you feel strongly about using <code>&lt;em&gt;</code> or definition lists, you can do that. In fact, a definition list is probably a good way for Amazon.com to mark up titles (a block of title-related information) versus a passing reference (an inline mention).</p>
<p>I think that this is an exciting proposition and am interested to hear from others. What are your thoughts?</p>
	</div>

	<div class="meta">
	<strong>Filed under:</strong><ul class="post-categories">
	<li><a href="http://www.tjameswhite.com/blog/archives/category/web-development/xhtml/" title="View all posts in (x)HTML" rel="category tag">(x)HTML</a></li>
	<li><a href="http://www.tjameswhite.com/blog/archives/category/web-development/css/" title="View all posts in CSS" rel="category tag">CSS</a></li></ul> </div>

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
				xmlns:dc="http://purl.org/dc/elements/1.1/"
				xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
			<rdf:Description rdf:about="http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/"
    dc:identifier="http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/"
    dc:title="Semantic Markup &amp; Microformats"
    trackback:ping="http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/trackback/" />
</rdf:RDF>
	<div class="feedback">
     	</div>
	

<!-- You can start editing here. -->


<h4 id="comments">Comments 
</h4>


	<p>No comments yet.</p>
<p><a href='http://www.tjameswhite.com/blog/archives/2005/07/semantic-markup-microformats/feed/'><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
<h4 id="postcomment">Leave a comment</h4>
<p>Sorry, the comment form is closed at this time.</p>

<!-- php include(ABSPATH . 'wp-comments.php'); -->
</div>



</div>


<div id="related">

	<div id="menu">
	
	
<!-- WordPress archive functions -->
	<ul>
	 <li><h2><a href="/blog/archives.php">Browse archives</a></h2></li>
	 <li id="search">
	 	<label for="s">Search archives:</label>	
	   <form id="searchform" method="get" action="/blog/index.php">
		<div>
			<input type="text" name="s" id="s" size="15" /><br />
			<input type="submit" name="submit" value="Search" />
		</div>
		</form>
	 </li>
	</ul>
	
	<h2>Currently Reading</h2>
	<!-- code from LibraryThing -->
	<script language="javascript" type="text/javascript" src="http://www.librarything.com/jswidget.php?reporton=tjameswhite&show=tagran&num=5&covers=small&header=&tag=reading&css=0&style=1&amazonassoc=">
</script>

<!-- links (from WordPress) -->
	<div id="links_list">
		<ul>  <li id="linkcat-26" class="linkcat"><h2>Currently Reading</h2>
	<ul>

	</ul>
</li>
  <li id="linkcat-25" class="linkcat"><h2>Friends</h2>
	<ul>
<li><a href="http://www.livejournal.com/users/drusni/" rel="friend met">drusni&#8217;s world</a></li>
<li><a href="http://www.livejournal.com/users/a2gemma/" rel="friend met">gemma&#8217;s gin joint</a></li>
<li><a href="http://www.livejournal.com/users/retrozombi/" rel="friend met">I Was an Atomic Retro Zombie</a></li>
<li><a href="http://www.livejournal.com/users/aular/" rel="friend met">Intergalactic Transceiver</a></li>
<li><a href="http://www.livejournal.com/users/jvankirk/" rel="friend met">Jarrod&#8217;s Ponderings</a></li>
<li><a href="http://www.livejournal.com/users/sfpro_studio/" rel="friend met">SFPro Studio</a></li>
<li><a href="http://architectslair.typepad.com/" rel="friend met">The Architect&#8217;s Lair</a></li>

	</ul>
</li>
  <li id="linkcat-27" class="linkcat"><h2>ToDa List</h2>
	<ul>
<li><a href="http://tjameswhite.tadalist.com/lists/all">TaDa List</a></li>

	</ul>
</li>
</ul>
	</div>	
		
<!-- WP categories -->
<ul>
	<li class="cat-item cat-item-2"><a href="http://www.tjameswhite.com/blog/archives/category/automotive/" title="View all posts filed under Automotive">Automotive</a> (<a href="http://www.tjameswhite.com/blog/archives/category/automotive/feed/" title="RSS">RSS</a>)
<ul class='children'>
	<li class="cat-item cat-item-3"><a href="http://www.tjameswhite.com/blog/archives/category/automotive/racing/" title="View all posts filed under Racing">Racing</a> (<a href="http://www.tjameswhite.com/blog/archives/category/automotive/racing/feed/" title="RSS">RSS</a>)
</li>
</ul>
</li>
	<li class="cat-item cat-item-15"><a href="http://www.tjameswhite.com/blog/archives/category/computer/" title="View all posts filed under Computer">Computer</a> (<a href="http://www.tjameswhite.com/blog/archives/category/computer/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-5"><a href="http://www.tjameswhite.com/blog/archives/category/entertainment/" title="View all posts filed under Entertainment">Entertainment</a> (<a href="http://www.tjameswhite.com/blog/archives/category/entertainment/feed/" title="RSS">RSS</a>)
<ul class='children'>
	<li class="cat-item cat-item-6"><a href="http://www.tjameswhite.com/blog/archives/category/entertainment/books/" title="View all posts filed under Books">Books</a> (<a href="http://www.tjameswhite.com/blog/archives/category/entertainment/books/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-22"><a href="http://www.tjameswhite.com/blog/archives/category/entertainment/cocktails/" title="View all posts filed under Cocktails">Cocktails</a> (<a href="http://www.tjameswhite.com/blog/archives/category/entertainment/cocktails/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-19"><a href="http://www.tjameswhite.com/blog/archives/category/entertainment/games/" title="View all posts filed under Games">Games</a> (<a href="http://www.tjameswhite.com/blog/archives/category/entertainment/games/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-7"><a href="http://www.tjameswhite.com/blog/archives/category/entertainment/movies/" title="View all posts filed under Movies">Movies</a> (<a href="http://www.tjameswhite.com/blog/archives/category/entertainment/movies/feed/" title="RSS">RSS</a>)
</li>
</ul>
</li>
	<li class="cat-item cat-item-1"><a href="http://www.tjameswhite.com/blog/archives/category/general/" title="View all posts filed under General">General</a> (<a href="http://www.tjameswhite.com/blog/archives/category/general/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-16"><a href="http://www.tjameswhite.com/blog/archives/category/holidays/" title="View all posts filed under Holidays">Holidays</a> (<a href="http://www.tjameswhite.com/blog/archives/category/holidays/feed/" title="RSS">RSS</a>)
<ul class='children'>
	<li class="cat-item cat-item-17"><a href="http://www.tjameswhite.com/blog/archives/category/holidays/halloween/" title="View all posts filed under Halloween">Halloween</a> (<a href="http://www.tjameswhite.com/blog/archives/category/holidays/halloween/feed/" title="RSS">RSS</a>)
</li>
</ul>
</li>
	<li class="cat-item cat-item-11"><a href="http://www.tjameswhite.com/blog/archives/category/house/" title="View all posts filed under House">House</a> (<a href="http://www.tjameswhite.com/blog/archives/category/house/feed/" title="RSS">RSS</a>)
<ul class='children'>
	<li class="cat-item cat-item-13"><a href="http://www.tjameswhite.com/blog/archives/category/house/gardening/" title="View all posts filed under Gardening">Gardening</a> (<a href="http://www.tjameswhite.com/blog/archives/category/house/gardening/feed/" title="RSS">RSS</a>)
</li>
</ul>
</li>
	<li class="cat-item cat-item-18"><a href="http://www.tjameswhite.com/blog/archives/category/life-and-things/" title="View all posts filed under Life and Things">Life and Things</a> (<a href="http://www.tjameswhite.com/blog/archives/category/life-and-things/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-20"><a href="http://www.tjameswhite.com/blog/archives/category/olivia/" title="View all posts filed under Olivia">Olivia</a> (<a href="http://www.tjameswhite.com/blog/archives/category/olivia/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-14"><a href="http://www.tjameswhite.com/blog/archives/category/photography/" title="View all posts filed under Photography">Photography</a> (<a href="http://www.tjameswhite.com/blog/archives/category/photography/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-4"><a href="http://www.tjameswhite.com/blog/archives/category/tai-chi/" title="View all posts filed under T&#039;ai Chi">T&#039;ai Chi</a> (<a href="http://www.tjameswhite.com/blog/archives/category/tai-chi/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-12"><a href="http://www.tjameswhite.com/blog/archives/category/vacation/" title="View all posts filed under Vacation">Vacation</a> (<a href="http://www.tjameswhite.com/blog/archives/category/vacation/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-8"><a href="http://www.tjameswhite.com/blog/archives/category/web-development/" title="View all posts filed under Web Development">Web Development</a> (<a href="http://www.tjameswhite.com/blog/archives/category/web-development/feed/" title="RSS">RSS</a>)
<ul class='children'>
	<li class="cat-item cat-item-10"><a href="http://www.tjameswhite.com/blog/archives/category/web-development/xhtml/" title="View all posts filed under (x)HTML">(x)HTML</a> (<a href="http://www.tjameswhite.com/blog/archives/category/web-development/xhtml/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-9"><a href="http://www.tjameswhite.com/blog/archives/category/web-development/css/" title="View all posts filed under CSS">CSS</a> (<a href="http://www.tjameswhite.com/blog/archives/category/web-development/css/feed/" title="RSS">RSS</a>)
</li>
	<li class="cat-item cat-item-23"><a href="http://www.tjameswhite.com/blog/archives/category/web-development/microformats/" title="View all posts filed under Microformats">Microformats</a> (<a href="http://www.tjameswhite.com/blog/archives/category/web-development/microformats/feed/" title="RSS">RSS</a>)
</li>
</ul>
</li>
	<li class="cat-item cat-item-21"><a href="http://www.tjameswhite.com/blog/archives/category/writing/" title="View all posts filed under Writing">Writing</a> (<a href="http://www.tjameswhite.com/blog/archives/category/writing/feed/" title="RSS">RSS</a>)
</li>
</ul>

	<p><a href="http://www.tjameswhite.com/blog/feed/" title="Syndicate this site using RSS"><abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></p>	
	</div> 
	
</div>

<div class="clearit"></div>
<div id="footer">
