<?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>KILLERSITES.COM &#187; HTML</title>
	<atom:link href="http://www.killersites.com/blog/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.killersites.com/blog</link>
	<description>Real world talk about web design, programming and the business of web design.</description>
	<lastBuildDate>Fri, 06 Nov 2009 16:49:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cleaner code is better than faster code</title>
		<link>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/</link>
		<comments>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/#comments</comments>
		<pubDate>Sun, 11 May 2008 17:29:43 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/</guid>
		<description><![CDATA[I can&#8217;t tell you how many times that my programming experience (in Java, PHP etc) has guided me in my web design work &#8230; and strangely, even in other aspects of my life not at all related to topics &#8216;nerd&#8217;.
&#8230; Ah, nerd wisdom prevails in all aspects of life.
  
Anyway, here yet again, is [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t tell you how many times that my programming experience (in Java, PHP etc) has guided me in my web design work &#8230; and strangely, even in other aspects of my life not at all related to topics &#8216;nerd&#8217;.</p>
<p>&#8230; Ah, nerd wisdom prevails in all aspects of life.</p>
<p> <img src='http://www.killersites.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, here yet again, is another example where programming guides me: this time, it&#8217;s all about web design and code. </p>
<p>-</p>
<p>Over the last few years, the consensus in the web design community has been to streamline code. In real terms, that comes down to:</p>
<ul>
<li>collapsing html</li>
<li>collapsing css</li>
<li>&#8230; and consolidating css code into one file, to minimize the number of server hits.</li>
</ul>
<p>&#8230; The idea is to speed up web page load times and to reduce web server loads. </p>
<p>This is an important goal and something all web designers should be concerned about. The problem is that if you are concentrating on optimizing your CSS or HTML to speed things up, you are concentrating on the wrong parts of your websites.</p>
<p>The fact is, that most of the optimization opportunities is actually found in your images, Flash movies and other multimedia content &#8211; not the code. </p>
<p><span id="more-280"></span></p>
<p><strong>What is HTML and CSS code collapsing?</strong></p>
<p>In a nutshell:</p>
<p>This is simply removing white space in your code. So you can take this:</p>
<div style="margin-top: 30px; margin-bottom: 30px;">
<pre lang="html">


Web design rocks!



Web design rocks!

</pre>
</div>
<p>And cut it down to this:</p>
<div style="margin-top: 30px; margin-bottom: 30px;">
<pre lang="html">

Web design rocks!

Web design rocks!
</pre>
</div>
<p>&#8230; The idea is that if you cut down 7 lines of code to just 1 line, the file will be a touch smaller. And this is true.</p>
<p>This old-school technique was used back in the 1990&#8217;s when everyone was on slow dial-up Internet connections and everyone had much slower computers.</p>
<p>Collapsing code was once useful, but like the transparent spacer gif trick &#8230; it is no longer needed. Actually, it&#8217;s more trouble than it is worth. </p>
<p><strong>What can web designers learn from programmers?</strong></p>
<p>When it comes to code, the web design community is still (generally) not nearly as experienced as the programming community. There are still lessons to be learned by the average web designer, lessons that have been fundamental in software development for years.</p>
<p>&#8230; Programmers have known for years that when it comes to code, it is better make it cleaner than speedier, because clean code is much easier to read, write and maintain. </p>
<p>So in our example above, seven lines of code are better than one.</p>
<p><strong>What is &#8216;cleaner&#8217; code?</strong></p>
<p>Clean code can be broken down to:</p>
<ul>
<li>Lots of white space so the code is easy to read.</li>
<li>Lots of comments so that you can much more easily understand what is going on 6 months down the road.</li>
<li>Code that is &#8216;chunked&#8217; into logical groups so that (again) it is easy to update etc.</li>
</ul>
<p>The rise of object oriented programming is the best example of this understanding. </p>
<p>Object oriented code will almost always be slower (when running) than old school procedural programming. Nonetheless, object oriented programming now dominates the programming world and all the major languages use it including:</p>
<ul>
<li>Java</li>
<li>PHP</li>
<li>Ruby</li>
<li>Actionscript</li>
</ul>
<p>&#8230; and many others.</p>
<p>After decades of experience, programmers have learned through hard experience that cleaner code is much better than faster code.</p>
<p><strong>How does this apply to web design?</strong></p>
<p>Well, write cleaner css and HTML that is easier to understand and easier to work with. To repeat the list from above:</p>
<ul>
<li>Use lots of white space so the code is easy to read.</li>
<li>Use lots of comments (in your html and css) so that you will be more able to understand what is going on 6 months down the road. This becomes more important when you are dealing with tricky CSS layouts that require seemingly strange markup.</li>
<li>Organize your <a href="http://www.killersites.com/blog/2008/how-to-organize-css/">css into logical groups (and pages)</a> so that it is easy to update etc.</li>
</ul>
<p><strong><br />
Won&#8217;t cleaner code slow down my pages?</strong></p>
<p>The fact of the matter is, for the vast majority of websites (%99.99999999999999999) you will not see ANY difference in terms of speed or cost in bandwidth. </p>
<p>&#8230; The &#8216;optimize code to save money&#8217; is a wurban (Web + urban) myth.</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The technologies you need to master to be a complete web designer.</title>
		<link>http://www.killersites.com/blog/2007/web-designers-study-guide/</link>
		<comments>http://www.killersites.com/blog/2007/web-designers-study-guide/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 05:56:11 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2007/web-designers-study-guide/</guid>
		<description><![CDATA[Web design has been transformed over the last many years. In many ways, the skills a web designer needed in 1996 are totally different from the skills you need in 2007 &#8230; and the foreseeable future.
I won&#8217;t go into what you needed in the past, because it matters not. So let&#8217;s talk about what you [...]]]></description>
			<content:encoded><![CDATA[<p>Web design has been transformed over the last many years. In many ways, the skills a web designer needed in 1996 are totally different from the skills you need in 2007 &#8230; and the foreseeable future.</p>
<p>I won&#8217;t go into what you needed in the past, because it matters not. So let&#8217;s talk about what you need to know today, to be a complete and competitive web designer.</p>
<p><strong>The Web Designer&#8217;s Study Guide:</strong></p>
<ol>
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
<li>Javascript</li>
</ol>
<p><span id="more-201"></span></p>
<p>Comments:</p>
<p>I think the first two on the list would make sense to most. But #3 is probably confusing the heck out of some of you, so let me make a few quick points.</p>
<p><strong>WHY WEB DESIGNERS NEED TO LEARN SOME PHP</strong><br />
<strong><br />
In a nutshell:</strong></p>
<ul>
<li>Most web projects will require some basic dynamic functionality that PHP makes easy.</li>
<li>Blogs and CMS software &#8211; read below.</li>
</ul>
<p>Today, it is becoming more and more common that web sites are based on a blog or CMS package. For example:</p>
<ul>
<li>Wordpress</li>
<li>Drupal</li>
<li>Mambo</li>
</ul>
<p>To take full advantage of these, you should be able to dig into the code so that you can make the changes for your clients particular needs. Not all blogs/cms are written in PHP .. but many are, including the ones listed above.</p>
<p>I go into more detail about <a href="http://www.killerphp.com/articles/evangelizing-php/">php for web designers</a> on my dedicated PHP site for web designers:</p>
<p><a href="http://www.killerphp.com">www.killerphp.com</a></p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2007/web-designers-study-guide/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Is HTML a scripting language?</title>
		<link>http://www.killersites.com/blog/2006/is-html-a-scripting-language/</link>
		<comments>http://www.killersites.com/blog/2006/is-html-a-scripting-language/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 15:28:02 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Nerd Concepts in English]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2006/is-html-a-scripting-language/</guid>
		<description><![CDATA[I&#8217;ve seen this confusion come up from time to time &#8211; is HTML a scripting language? 
Short answer: no.
Yes a nerd detail, but nonetheless, this is something that should be made clear.
THE DETAILS:
HTML is actually a markup language and not a scripting language.
Scripting implies decision making capabilities (the code can actually evaluate and take an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen this confusion come up from time to time &#8211; is HTML a scripting language? </p>
<p><strong>Short answer: no.</strong></p>
<p>Yes a nerd detail, but nonetheless, this is something that should be made clear.</p>
<p><strong>THE DETAILS:</strong></p>
<p>HTML is actually a <em>markup language</em> and not a scripting language.</p>
<p>Scripting implies decision making capabilities (the code can actually evaluate and take an action based on what it finds) &#8211; PHP, PERL, Ruby, Javascript are examples of scripting languages.</p>
<p>Markup languages create structure for a document &#8230; they only describe data. For example:</p>
<ul>
<li>HTML</li>
<li>XHTML</li>
<li>XML</li>
</ul>
<p>&#8230; but you knew that already.</p>
<p> [;)] </p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2006/is-html-a-scripting-language/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Three reasons you should learn to hand code your web pages.</title>
		<link>http://www.killersites.com/blog/2006/three-reasons-to-code/</link>
		<comments>http://www.killersites.com/blog/2006/three-reasons-to-code/#comments</comments>
		<pubDate>Wed, 25 Jan 2006 08:01:21 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Podcast | Videos]]></category>
		<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[hand coding]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2006/three-reasons-you-should-learn-to-hand-code-your-web-pages/</guid>
		<description><![CDATA[In this podcast, I discuss the 3 reasons why learning to hand code your web pages makes sense &#8230; and dollars too!&#160;
Podcast running time: 7:30

Download MP3&#160;link: 3 Reasons to hand code
Thanks,
Stefan Mischook
]]></description>
			<content:encoded><![CDATA[<p>In this podcast, I discuss the 3 reasons why learning to hand code your web pages makes sense &#8230; and dollars too!&nbsp;</p>
<p><strong>Podcast running time:</strong> 7:30</p>
<p><img height="72" alt="" hspace="2" src="http://www.killersites.com/UserFiles/Image/headShot_blog_small.jpg" width="81" vspace="2" /></p>
<p>Download MP3&nbsp;link: <a href="http://www.killersites.com/blog/audio/3_reasons.mp3" target="_blank">3 Reasons to hand code</a></p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2006/three-reasons-to-code/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
<enclosure url="http://www.killersites.com/blog/audio/3_reasons.mp3" length="2275396" type="audio/mpeg" />
		</item>
	</channel>
</rss>
