<?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>Traversal &#187; Web Standards</title>
	<atom:link href="http://traversal.com.au/category/web-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://traversal.com.au</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 04:59:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Markup Conventions</title>
		<link>http://traversal.com.au/blog/2007/05/14/markup-conventions/</link>
		<comments>http://traversal.com.au/blog/2007/05/14/markup-conventions/#comments</comments>
		<pubDate>Mon, 14 May 2007 04:27:22 +0000</pubDate>
		<dc:creator>Travis Hensgen</dc:creator>
				<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://mondea.com.au/blog/?p=3</guid>
		<description><![CDATA[Many of us have our own conventions when working with HTML - here's one of mine for form elements.]]></description>
			<content:encoded><![CDATA[<p>While hardly earth shattering, one useful XHTML convention I&#8217;ve been using lately is to always make the id attribute the <strong>first</strong> on a tag, and make the class attribute the <strong>last</strong>. The most common case that I need both attributes is for input tags (and usually because IE 6 doesn&#8217;t support attribute-selectors), for example:</p>
<pre class="brush: xhtml">

&lt;input id=&quot;first-name&quot; name=&quot;first-name&quot; type=&quot;text&quot; classic=&quot;text&quot; /&gt;
</pre>
<p>Using this convention also means I can place the <code>id</code> and the <code>name</code> adjacent to each other &#8211; also handy. While this may not be the preferred convention for everyone, I find it&#8217;s just one more thing that helps me read that code in 6 months time &#8211; if I stick to it, it&#8217;s pretty quick for my eye to scan to that all-important information. </p>
]]></content:encoded>
			<wfw:commentRss>http://traversal.com.au/blog/2007/05/14/markup-conventions/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>


<!-- W3 Total Cache: Page cache debug info:
Engine:             disk (enhanced)
Key:                category/web-standards/feed/_index.html
Caching:            enabled
Status:             not cached
Creation Time:      0.307s
Header info:
X-Pingback:         http://traversal.com.au/xmlrpc.php
ETag:               "64c6a36058dc032fbf8154666f79bb0d"
X-Powered-By:       W3 Total Cache/0.9.1.3
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Mon, 06 Feb 2012 20:49:36 GMT
Vary:               Accept-Encoding, Cookie
Content-Encoding:   gzip
-->
