<?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>Seagull Code Nodes &#187; divs</title>
	<atom:link href="http://blog.joshuasiegal.com/tag/divs/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.joshuasiegal.com</link>
	<description></description>
	<lastBuildDate>Tue, 05 Oct 2010 06:25:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Semantic HTML Literacy</title>
		<link>https://blog.joshuasiegal.com/2009/semantic-html-literacy/</link>
		<comments>https://blog.joshuasiegal.com/2009/semantic-html-literacy/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 17:56:22 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[divs]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[semantic]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://joshuasiegal.com/blog/?p=1</guid>
		<description><![CDATA[Since shortly after people started using markup to organize data, the dream has been knocked around that one day the structure and the content would become seamlessly intertwined.  However, this is a tiny bit counterintuitive, as I see it, as one of the features of XML, for example, is to delineate data and content apart [...]]]></description>
			<content:encoded><![CDATA[<p>Since shortly after <a title="History of XML - Wikipedia" href="http://en.wikipedia.org/wiki/XML#History" target="_blank">people started using markup to organize data</a>, the dream has been knocked around that one day the structure and the content would become seamlessly intertwined.  However, this is a tiny bit counterintuitive, as I see it, as one of the features of XML, for example, is to delineate data and content apart from the meta-data that applies to it.</p>
<p>The real dream has been that one day, HTML and XML would be combined (not just in terms of the XHTML standard), and that the web would turn into a big soup of meta information.  This would allow all sorts of wonderfully customizable content, searching, cross-threading, and possibly, someday, even help create some kind of internet based solely on context, rather than infrastructure and IP.  Positives: super-personalized web-browsing, advertisements, and content aggregation.  Negatives: super-personalized web-browsing, advertisements, and content aggregation.</p>
<p>But I digress.  The flock to div tags as cleaner and more semantically meaningful has been a beneficial one, but for we web developers who remember the [good?] [bad?] old days, there are more than a few cases in memory of the development community rushing en masse to the next greatest thing, and then flipping it into reverse with the release of the next IE browser / web standard / greatest thing.</p>
<p><span id="more-1"></span></p>
<p>It has gotten to the point where I have seen postings looking for people who write div- and css-based code &#8211; <em>no tables allowed!</em></p>
<p>This is madness.  What is XML, after all, than a method of organizing data?  When you&#8217;re getting an XML feed from a backend, you are converting your data from a table-based format (database) to a markup-based format.  Same data (we hope).  The real question here is page layout.  Surely web developers who are using and editing one another&#8217;s code would rather see:</p>
<blockquote><p>&lt;div id=&#8221;header&#8221;&gt;&lt;!&#8211; header &#8211;&gt;&lt;/div&gt;</p></blockquote>
<p>than</p>
<blockquote><p>&lt;table border=&#8221;0&#8243; class=&#8221;table&#8221; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;&lt;!&#8211; header &#8211;&gt;&lt;/th&gt;<br />
&lt;tr&gt;<br />
etc.</p></blockquote>
<p>But while that div is nice and neat and it allows for better accessibility, it does not do as well when it comes time for, let&#8217;s say:</p>
<p><a title="One good use for tables" href="http://espn.go.com/nfl/statistics/team/_/stat/downs/sort/thirdDownConvPct" target="_blank">this</a>.</p>
<p>Also, despite the wonderful blessing that is CSS (<a title="CSS Zen Garden" href="http://csszengarden.com/" target="_blank">it can be quite soothing</a>), when something goes wrong with the style sheet, the result can be disastrous.  Of course, we all want to write code that degrades gracefully, but the fact is that, the more we ask of our code &#8211; especially as we utilize style sheets &#8211; the more risk we run that if something breaks on the backend (certainly our code would never break), or a user is tied to a hopelessly outdated browser, the result will be unintelligible.</p>
<p>But back to semantics, for their own sake.  Perhaps it comes down to a particular aesthetic, but the notion of a fully semantic web makes me think of those kitschy items that have the word for the item printed on them, for example a mug that says &#8220;MUG&#8221;.  Maybe there is a bit too much big-picture here, for a change.  Net neutrality&#8217;s goal is access and publishing rights for anyone with an internet connection.   It&#8217;s not hard to imagine a semantic web that wants to take choices out of our hands and push certain content in front of our eyeballs for us.</p>
<p>As for us developers, if the goal is good, solid code, the answer seems to be, like with much else, a healthy mix of new and old, with an eye towards every tool and its best use.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.joshuasiegal.com/2009/semantic-html-literacy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
