<?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 vs client XHTML/CSS</title>
	<atom:link href="http://www.oneafrikan.com/2006/05/18/semantic-vs-client-xhtmlcss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oneafrikan.com/2006/05/18/semantic-vs-client-xhtmlcss/</link>
	<description>This is the evolution of One Afrikan. And this blog is going to change it&#039;s design too. Promise.  Booyaa.</description>
	<lastBuildDate>Sun, 05 Jun 2011 17:16:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Adrian</title>
		<link>http://www.oneafrikan.com/2006/05/18/semantic-vs-client-xhtmlcss/comment-page-1/#comment-1097</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Thu, 18 May 2006 15:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.oneafrikan.com/archives/2006/05/18/semantic-vs-client-xhtmlcss/#comment-1097</guid>
		<description>The pair of you are nuts. I&#039;ll include me in that too, as I&#039;m answering. Go and look up &quot;opportunity cost&quot; in an economics reference.

I can see this being controversial but I&#039;d look at it like this.

The Strong tag isn&#039;t semantic. Semantic refers to what things _are_, not how they should be rendered. I&#039;m sure most readers here will know that.

So the question I&#039;d ask is, &quot;Why is this thing being rendered strongly? What is it about this thing that means it should be treated in this way?&quot; The answer, presumably, is something like &quot;Because it&#039;s the first sentence of a page&quot;.

The &quot;if you strip out the CSS&quot; bit is suspicious but leads us to the underlying problem. The whole point of CSS is that you can abstract content from presentation. It&#039;s designed to be stripped out.

XHTML isn&#039;t really semantic at all. The default rendering styles for the native XHTML elements are just that - defaults. They&#039;re not set in stone and crucially, don&#039;t really mean anything. On one page, h1 might be a news story headline. On another, the name of a user. On a third, the name of a product. h1 is really telling us nothing here semantically about what the content _is_, only about how it relates to other page elements (more important, less important). But really, this is just a holdover from pre-CSS days when there was no separation of content and presentation at all. HTML was a purely presentational markup system. Note also that (X)HTML makes no attempt to enforce the nested outline structure of heading elements. It&#039;s a joke. Compare that to how an outline structure might be enforced in a valid XML document according to a specific DTD. It wouldn&#039;t surprise me if the XHTML committee considered strictly enforcing the heading outline structure it but decided it wasn&#039;t worth the argument.

So if you want to be semantically pedantic, the answer is to remove the Strong tags and replace them with a nested span that&#039;s classed or id&#039;d according to the meaning of the element. Then, just use CSS to render that however you like (for this medium), even if that&#039;s just font-weight: bold; Someone reading your XHTML source will then know, explicitly, why you&#039;re handling that bit of content differently from the others.</description>
		<content:encoded><![CDATA[<p>The pair of you are nuts. I&#8217;ll include me in that too, as I&#8217;m answering. Go and look up &#8220;opportunity cost&#8221; in an economics reference.</p>
<p>I can see this being controversial but I&#8217;d look at it like this.</p>
<p>The Strong tag isn&#8217;t semantic. Semantic refers to what things _are_, not how they should be rendered. I&#8217;m sure most readers here will know that.</p>
<p>So the question I&#8217;d ask is, &#8220;Why is this thing being rendered strongly? What is it about this thing that means it should be treated in this way?&#8221; The answer, presumably, is something like &#8220;Because it&#8217;s the first sentence of a page&#8221;.</p>
<p>The &#8220;if you strip out the CSS&#8221; bit is suspicious but leads us to the underlying problem. The whole point of CSS is that you can abstract content from presentation. It&#8217;s designed to be stripped out.</p>
<p>XHTML isn&#8217;t really semantic at all. The default rendering styles for the native XHTML elements are just that &#8211; defaults. They&#8217;re not set in stone and crucially, don&#8217;t really mean anything. On one page, h1 might be a news story headline. On another, the name of a user. On a third, the name of a product. h1 is really telling us nothing here semantically about what the content _is_, only about how it relates to other page elements (more important, less important). But really, this is just a holdover from pre-CSS days when there was no separation of content and presentation at all. HTML was a purely presentational markup system. Note also that (X)HTML makes no attempt to enforce the nested outline structure of heading elements. It&#8217;s a joke. Compare that to how an outline structure might be enforced in a valid XML document according to a specific DTD. It wouldn&#8217;t surprise me if the XHTML committee considered strictly enforcing the heading outline structure it but decided it wasn&#8217;t worth the argument.</p>
<p>So if you want to be semantically pedantic, the answer is to remove the Strong tags and replace them with a nested span that&#8217;s classed or id&#8217;d according to the meaning of the element. Then, just use CSS to render that however you like (for this medium), even if that&#8217;s just font-weight: bold; Someone reading your XHTML source will then know, explicitly, why you&#8217;re handling that bit of content differently from the others.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

