<?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>Craig Hamnett &#187; html</title>
	<atom:link href="http://www.craighamnett.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craighamnett.com</link>
	<description>Crossing America one puncture at a time</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:00:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Reusable Code</title>
		<link>http://www.craighamnett.com/design/reusable-code/</link>
		<comments>http://www.craighamnett.com/design/reusable-code/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 23:49:43 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.craighamnett.com/business/reusable-code/</guid>
		<description><![CDATA[Photo by Buddha327 It is often said that good coders write code from scratch and that great coders reuse code. If that&#8217;s the case then it appears I&#8217;m a great coder. I have about 4 or 5 different xHTML/CSS layouts &#8230; <a href="http://www.craighamnett.com/design/reusable-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm1.static.flickr.com/139/328741580_50616eddbe.jpg" title="Zen" alt="Zen" width="500" height="400" /><a href="http://flickr.com/photos/stevepopkin/328741580/sizes/m/"><br />
<em>Photo by Buddha327</em></a></p>
<p>It is often said that good coders write code from scratch and that great coders reuse code. If that&#8217;s the case then it appears I&#8217;m a great coder. I have about 4 or 5 different <acronym title="eXtensible Hypertext Markup Language">xHTML</acronym>/<acronym title="Cascading Style Sheet">CSS</acronym> layouts which I am constantly reusing because they are just solid, cross browser layouts which can be modified and tweaked to suit most designs.</p>
<p>Most designs follow similar principles; a header, 2 or 3 columns and a footer. Therefore there really is no need to reinvent the wheel. As well as being time-saving, it is also a matter of consistency and ensuring that the quality and backwards compatibility is built into the templates.</p>
<p>This ability to manipulate templates really comes down to separating content from style and harnessing the power of <acronym title="Cascading Style Sheet">CSS</acronym>. Being able to keep underlying <acronym title="eXtensible Hypertext Markup Language">xHTML</acronym> code exactly the same, and to change the design through just <acronym title="Cascading Style Sheet">CSS</acronym> is something that even today, some designers can&#8217;t grasp. All too often I see in-line styles where it&#8217;s not necessary and this makes updating a site very laborious, tedious and time consuming.</p>
<p>To see what I&#8217;m getting at, a great project by Dave Shea called <a href="http://csszengarden.com" title="CSS Zen Garden">CSS Zen Garden</a> was started to really flex the muscles of <acronym title="Cascading Style Sheet">CSS</acronym>. Although this project is relatively prehistoric in Internet terms, it still attracts a lot of attention. This is how the web should be built, with semantics and accessibility in mind, however there are far too many Web Design companies that just don&#8217;t care about the ethics of the work they do, just so long as they get paid.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craighamnett.com/design/reusable-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is valid anyway?</title>
		<link>http://www.craighamnett.com/design/what-is-valid-anyway/</link>
		<comments>http://www.craighamnett.com/design/what-is-valid-anyway/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 11:52:11 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.craighamnett.com/design/what-is-valid-anyway/</guid>
		<description><![CDATA[Photo by Simon Pow There are many people that talk about xHTML and CSS code with a passion (myself included), and that only perfectly valid code is the way to build a website. If you want my honest opinion, the &#8230; <a href="http://www.craighamnett.com/design/what-is-valid-anyway/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm1.static.flickr.com/104/252312738_e025b7edfa.jpg" title="Coding Perfection" alt="Coding Perfection" width="500" height="310" /><a href="http://www.flickr.com/photo_zoom.gne?id=252312738&amp;size=m"><br />
<em>Photo by Simon Pow</em></a></p>
<p>There are many people that talk about xHTML and CSS code with a passion (myself included), and that only perfectly valid code is the way to build a website. If you want my honest opinion, the only reason my code is always valid is to shut up the critics that only base critiques on whether it passes the nice <a href="http://validator.w3.org/" title="W3C Validator">Validator Test</a> over at W3C.</p>
<p>On the odd occasion, the Validator can be a good way to spot a mistake, but in no way does it guarantee cross browser compatibility or in fact make it work in future browsers.  In fact, more often than not, perfectly valid code will never be cross-browser compatible, and that is the most frustrating part of what I do. What is the point then in having these standards? At the end of the day, a website user doesn&#8217;t care how a website works, so long as it works for them!</p>
<p>I guess it just comes down to some people&#8217;s mantra, or work ethics. When I create the code I do, I firstly ensure that it is cross-browser compatible (for the consumer), and once I have succeeded I then start to work on ensuring that the code is also valid (for my ego). Obviously the consumer comes first, but as the perfectionist I am, standards are imperative. It also shuts those small-minded critics up!</p>
<p>To me, what is far more important is the accessibility and usability of a website. There are people that like to think that valid code means these two things, and they couldn&#8217;t be more wrong. Semantics and logic are the key to these issues, which is something I&#8217;ll be talking about in the not too distant future!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craighamnett.com/design/what-is-valid-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

