<?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>justaddwater.dk &#187; HTML</title>
	<atom:link href="http://justaddwater.dk/category/webstandards/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://justaddwater.dk</link>
	<description>Instant Usability &#38; Web Standards</description>
	<lastBuildDate>Thu, 10 Jun 2010 08:23:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>2 Must-Know HTML Table Colum Features Any Webdeveloper Should Be Aware Of</title>
		<link>http://justaddwater.dk/2009/09/02/2-must-know-html-table-colum-features-any-webdeveloper-should-be-aware-of/</link>
		<comments>http://justaddwater.dk/2009/09/02/2-must-know-html-table-colum-features-any-webdeveloper-should-be-aware-of/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 13:23:49 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[tables]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/?p=1135</guid>
		<description><![CDATA[<p>I was reading up on the good old HTML specification and discovered a feature I had always wanted -- and it's already there:
Creating widths of columns that will work like percentages, but will also pay attention to any small, fixed-width columns.</p>

<p>Take a look at HTML's proportional widths and amount alignment features.</p>]]></description>
			<content:encoded><![CDATA[<p>I was reading up on the good old HTML specification and discovered a feature I had always wanted &#8212; and it&#8217;s already there:<br />
Creating widths of columns that will work like percentages, but will also pay attention to any small, fixed-width columns.</p>
<p>Take a look at HTML&#8217;s proportional widths and amount alignment features.</p>
<p>Look at this from HTML specification of &lt;COL&gt; elements:</p>
<blockquote><p>Authors may specify column widths in three ways:</p>
<dl>
<dt><strong>Fixed</strong></dt>
<dd>A fixed width specification is given in pixels (e.g., <samp> width</samp>=&#8221;30&#8243;). A fixed-width specification enables incremental rendering.</dd>
<dt><strong>Percentage</strong></dt>
<dd>A percentage specification (e.g., <samp>width</samp>=&#8221;20%&#8221;) is based on the percentage of the horizontal space available to the table (between the current left and right margins, including floats). Note that this space does not depend on the table itself, and thus percentage specifications enable incremental rendering.</dd>
<dt><strong>Proportional</strong></dt>
<dd>Proportional specifications (e.g., <samp>width</samp>=&#8221;3*&#8221;) refer to portions of the horizontal space <em>required</em> by a table. If the table width is given a fixed value via the <samp>width</samp> attribute of the <a href="http://www.w3.org/TR/html4/struct/tables.html#edef-TABLE"><samp>TABLE</samp></a> element, user agents may render the table incrementally even with proportional columns.However, if the table does not have a fixed width, user agents must receive all table data before they can determine the horizontal space required by the table. Only then may this space be allotted to proportional columns.</p>
</dd>
</dl>
</blockquote>
<p>Proportional widths! Nice. This means that you can create tables like this example (i have swapped the original HTML4 style to lowercase XHTML):</p>
<blockquote><p>Once the (visual) user agent has received the table&#8217;s data: the available horizontal space will be alloted by the user agent as follows: First the user agent will allot 30 pixels to columns one and two. Then, the minimal space required for the third column will be reserved. <strong>The remaining horizontal space will be divided into six equal portions (since 2* + 1* + 3* = 6 portions)</strong>. Column four (2*) will receive two of these portions, column five (1*) will receive one, and column six (3*) will receive three.</p>
<pre>&lt;table&gt;
&lt;colgroup&gt;
  &lt;col width="30"/&gt;
&lt;colgroup&gt;
  &lt;col width="30"/&gt;
  &lt;col width="0*"/&gt;
  &lt;col width="2*"/&gt;
&lt;colgroup align="center"&gt;
  &lt;col width="1*"/&gt;
  &lt;col width="3*" align="char" char=":"/&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;td&gt; ...
...rows...
&lt;/table&gt;</pre>
</blockquote>
<p>This leaves me with one big question: How is browser support for &lt;col width=&#8221;2*&#8221;&gt; ????</p>
<p>BONUS: Did you notice the little align feature &#8216;align=&#8221;char&#8221; char=&#8221;:&#8221; &#8216; so that you can correctly align your decimal amounts? I was not aware of that either!</p>
<p>More info in W3C&#8217;s HTML4 specification &#8220;<a href="http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4.4">Calculating the widths of columns</a>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2009/09/02/2-must-know-html-table-colum-features-any-webdeveloper-should-be-aware-of/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>1996 Humour Ahead: Spacer.gif, Table Layouts</title>
		<link>http://justaddwater.dk/2007/12/06/1996-humour-ahead-spacergif-table-layouts/</link>
		<comments>http://justaddwater.dk/2007/12/06/1996-humour-ahead-spacergif-table-layouts/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 17:28:01 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/12/06/1996-humour-ahead-spacergif-table-layouts/</guid>
		<description><![CDATA[In case you missed it, Dustin Diaz has written this excellent parody on what the hottest web techniques were like before webstandards and css were invented.
Seven hottest web 1.0 techniques to trick out your webpage.
2) Animation without JavaScript
Believe it! It’s true. Drop those old scripts that made your website scroll and blink because why bother [...]]]></description>
			<content:encoded><![CDATA[<p>In case you missed it, Dustin Diaz has written this excellent parody on what the hottest web techniques were like before webstandards and css were invented.<br />
<a href="http://www.dustindiaz.com/web-1-point-oh-techniques/" title="Dustin Diaz: &quot;Seven hottest web 1.0 techniques to trick out your webpage&quot;">Seven hottest web 1.0 techniques to trick out your webpage</a>.</p>
<blockquote cite="http://www.dustindiaz.com/web-1-point-oh-techniques/"><h3>2) Animation without JavaScript</h3>
<p>Believe it! It’s true. Drop those old scripts that made your website scroll and blink because why bother programming JavaScript when plain ‘ol HTML can do it for you! These are the ever-so-beloved
<div class="codesnip-container" >&lt;blink&gt;</div>
<p> and
<div class="codesnip-container" >&lt;marquee&gt;</div>
<p> tags.</p>
<h3 class="code">blink and marquee</h3>
<pre animheight="60">
<div class="codesnip-container" >&lt;blink&gt;Sale! Sale! Sale! Buy now and save big!&lt;/blink&gt;

&lt;marquee&gt;Welcome welcome welcome! Today is the beginning of the end, buy now!&lt;/marquee&gt;</div>
</pre>
</blockquote>
<p>Fabulous humour, just the way I like it :). Especially I love the hit counter:</p>
<p><img src="http://www.dustindiaz.com/basement/web-1.0/hitstoday.gif" alt="Hits today"/></p>
<p>Oh and by the way, did you know who <a href="http://justaddwater.dk/2006/03/03/who-invented-the-spacergif/">invented the spacer.gif</a>?</p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/spacer.gif" rel="tag">spacer.gif</a>, <a href="http://technorati.com/tag/webstandards" rel="tag"> webstandards</a>, <a href="http://technorati.com/tag/" rel="tag"> </a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/12/06/1996-humour-ahead-spacergif-table-layouts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Site Investigation Toolbox Update</title>
		<link>http://justaddwater.dk/2007/10/12/web-site-investigation-toolbox-update/</link>
		<comments>http://justaddwater.dk/2007/10/12/web-site-investigation-toolbox-update/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 08:54:01 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/10/12/web-site-investigation-toolbox-update/</guid>
		<description><![CDATA[<img src="http://justaddwater.dk/wp-content/uploads/2007/10/bookmarlets.thumbnail.png" alt="bookmarlets.png" style="float:left; margin-right:10px;"/> I figured the original bookmarklet toolbox needed an update. Added Quirksmode detection, layout grid and updated PageInfo to accept framed pages. <br style="clear:left"/>]]></description>
			<content:encoded><![CDATA[<p>I figured the original bookmarklet toolbox needed an update (i have updated and added a few bookmarklets since I first posted <a href="http://justaddwater.dk/2006/09/18/toolbox/" rel="bookmark" title="Permanent Link: Toolbox — locating problems in HTML">Toolbox — locating problems in HTML</a>). Quirksmode detection, Layout grid and more.</p>
<p>For example I added &#8220;quirks or !quirks&#8221; to determine whether a page runs standards mode or quirks mode. It pops up an alert that displays rendering mode for each frame.</p>
<ul>
<li>&#8220;Document mode: CSS1 Compat&#8221; is standards mode</li>
<li>&#8220;Document mode: Back compat&#8221; is quirksmode</li>
</ul>
<p>I forget where I found the code (please notify me and I&#8217;ll give you credit).I also modified <a href="http://slayeroffice.com/?c=/content/tools/pagenfo.html">Steve Chipman&#8217;s excellent &#8220;PageInfo&#8221;</a> so that its usable with frames. If frames are found it asks you to enter a frame number (index from document.frames[x])</p>
<p>I also added Andy Budd&#8217;s <a href="www.andybudd.com/archives/2006/07/layout_grid_bookmarklet/">CSS grid layout bookmarklet</a> which I find useful on occasions to see if things line up.</p>
<p>In general I find that I use these less and less, because much functionality is built into Firebug. But on some occations the bookmarklets can prove very handy.</p>
<p>Import all at once (separate HTML page):</p>
<p style="text-align: center"><strong><a href="http://justaddwater.dk/wp-content/uploads/2007/10/web-standards-investigation-tools.html" id="p394">Web Standards Investigation Tools (WSIT)  HTML page</a></strong><br />
<small>(last updated 2007-10-12)</small>
</p>
<p style="text-align: center"><img src="http://justaddwater.dk/wp-content/uploads/2007/10/bookmarlets.png" alt="bookmarlets.png" /></p>
<p>Instruction:</p>
<ol>
<li>Save the linked HTML page locally</li>
<li>Open Firefox Bookmark Manager (Bookmarks &gt; Manage Bookmarks)</li>
<li>Choose File &gt; Import …</li>
<li>Import bookmarks into “Bookmarks Toolbar Folder” for easy access to them.</li>
</ol>
<p>More info:</p>
<ul>
<li><a href="http://justaddwater.dk/2006/09/18/toolbox/" rel="bookmark" title="Permanent Link: Toolbox — locating problems in HTML">Toolbox — locating problems in HTML</a></li>
<li>Original <a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Web Standards Investigation Tools (WSIT) bookmarklets</a> (September 2006)</li>
<li><a href="http://justaddwater.dk/2006/09/18/technique">Technique for locating problems in HTML</a> (September 2006)</li>
<li><a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Why web standards matter (case study) (June 2006)</a></li>
</ul>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/javascript" rel="tag">javascript</a>, <a href="http://technorati.com/tag/bookmarklet" rel="tag"> bookmarklet</a>, <a href="http://technorati.com/tag/toolbox" rel="tag"> toolbox</a>, <a href="http://technorati.com/tag/webstandards" rel="tag"> webstandards</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/10/12/web-site-investigation-toolbox-update/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>E-Texteditor For Windows</title>
		<link>http://justaddwater.dk/2007/04/28/e-texteditor-for-windows/</link>
		<comments>http://justaddwater.dk/2007/04/28/e-texteditor-for-windows/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 22:55:38 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/04/28/e-texteditor-for-windows/</guid>
		<description><![CDATA[I have been looking a fast, intuitive editor for my Windows laptop.
Now I stopped looking. E-texteditor for windows is very intuitive and easy to use.  I highly recommend watching the screencast (a short tour of some of the best features). Although it&#8217;s still in beta, it seems so much better than the alternatives.
I&#8217;m using [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking a fast, intuitive editor for my Windows laptop.</p>
<p>Now I stopped looking. E-texteditor for windows is very intuitive and easy to use.  I highly recommend watching the screencast (a short tour of some of the best features). Although it&#8217;s still in beta, it seems so much better than the alternatives.</p>
<p>I&#8217;m using it for HTML, CSS, JavaScript, Ruby on Rails editing. And it just works.</p>
<p><a href="http://www.e-texteditor.com/index.html" title="E-texteditor homepage with screenshot"><img src="http://justaddwater.dk/wp-content/uploads/2007/04/e-texteditor-homepage.png" alt="e-texteditor-homepage.png" /></a></p>
<p>One note for avoiding future head-scratching: In order to get the keyboard shortcuts (so-called bundles) to work, I had to delete Cygwin and let E install it automatically. Afterwards I had to add packages manually: Subversion (svn)</p>
<p>Other improvements that would be handy:<br />
In HTML mode there is a shortcut &#8220;doctype [tab]&#8220;, but there is no shortcut for creating the rest of the HTML document. It&#8217;s probably easy to add (but  i&#8217;m not into doing it yet). Besides, I think an addition like this would be a benefit to everybody, so it should be included in the general bundle.</p>
<p>In Ruby files, when looking on Ruby on Rails, it defaults the files to Ruby (because they are and they end in .rb). However, there is a lot of functionality with regards to Rails, so it would actually work better, if .rb defaulted to Ruby. Here is a <a href="http://www.e-texteditor.com/forum/viewtopic.php?p=3361#3361" title="E-texteditor forum: Set Rails file from Ruby to Rails">workaround to add .rb files to Rails syntax</a>.</p>
<p>I also added a bug report &#8220;<a href="http://www.e-texteditor.com/forum/viewtopic.php?t=1120" title="E-Texteditor forum">Block selection should work without the mouse</a>&#8221; (guess I&#8217;m a usability geek).</p>
<p>The simple <a href="http://cheat.errtheblog.com/s/e/" title="ErrTheBlog E-texteditor cheatsheet.">cheatsheet for E-texteditor</a> at errtheblog is worth checking out, although it contains only the general shortcuts and not the Rails specific ones. Via: <a href="http://www.rubyinside.com/e-texteditor-a-windows-textmate-or-why-apple-should-buy-textmate-413.html" rel="bookmark" title="RubyInside: E-TextEditor: A Windows TextMate? (Or ">RubyInside</a>.</p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/editor" rel="tag">editor</a>, <a href="http://technorati.com/tag/e-texteditor" rel="tag"> e-texteditor</a>, <a href="http://technorati.com/tag/etexteditor" rel="tag"> etexteditor</a>, <a href="http://technorati.com/tag/windows" rel="tag"> windows</a>, <a href="http://technorati.com/tag/textmate" rel="tag"> textmate</a>, <a href="http://technorati.com/tag/html" rel="tag">  html</a>, <a href="http://technorati.com/tag/css" rel="tag"> css</a>, <a href="http://technorati.com/tag/javascript" rel="tag"> javascript</a>, <a href="http://technorati.com/tag/rails" rel="tag"> rails</a>, <a href="http://technorati.com/tag/ruby+on+rails" rel="tag"> ruby on rails</a>, <a href="http://technorati.com/tag/ruby" rel="tag"> ruby</a>, <a href="http://technorati.com/tag/rubyonrails" rel="tag"> rubyonrails</a>, <a href="http://technorati.com/tag/cygwin" rel="tag"> cygwin</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/04/28/e-texteditor-for-windows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Rounded Corners the Technorati Way</title>
		<link>http://justaddwater.dk/2007/02/15/rounded-corners-the-technorati-way/</link>
		<comments>http://justaddwater.dk/2007/02/15/rounded-corners-the-technorati-way/#comments</comments>
		<pubDate>Thu, 15 Feb 2007 11:01:05 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/02/15/rounded-corners-the-technorati-way/</guid>
		<description><![CDATA[It&#8217;s been a while where web standards don&#8217;t get the attention it deserves on this blog. In that spirit, here&#8217;s a behind-the-scenes view on how Technorati makes rounded corners on a faded background.

I remember Eric Meyer mentioned this solution back at a workshop in 2005 (before he could actually tell that it was for  [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while where web standards don&#8217;t get the attention it deserves on this blog. In that spirit, here&#8217;s a behind-the-scenes view on how Technorati makes rounded corners on a faded background.</p>
<p><img src="http://justaddwater.dk/wp-content/uploads/2007/02/technorati-rounded-corner-justadwater-rank-9980-mini.png" id="image549" alt="Technorati screenshot of box with rounded corners on faded background (showing Justaddwater Ranks no. 9980 on Technorati)" /></p>
<p>I remember Eric Meyer mentioned this solution back at a workshop in 2005 (before he could actually tell that it was for  Technorati — the redesign was unveiled a few days later).</p>
<h3>Technique</h3>
<p>HTML for the box:</p>
<pre>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;bloginfo-summary boxc&quot;</span>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span>..<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/ul.html"><span class="kw2">ul</span></a>&gt;</span>
&nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;</span>..<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;</span>
&nbsp; &nbsp; ..
&nbsp; <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/ul.html"><span class="kw2">ul</span></a>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;cn tr&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;cn br&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;cn tl&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a>&gt;</span>
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;cn bl&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/b.html"><span class="kw2">b</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span></div>
</div>
</pre>
<p>The HTML is then styled with the following CSS:</p>
<pre>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;">div<span class="re1">.bloginfo-summary</span> <span class="br0">&#123;</span><span class="kw1">background</span><span class="sy0">:</span>
&nbsp; <span class="kw2">url</span><span class="br0">&#40;</span><span class="co2">http://static.technorati.com/static/css/img/bg/fade-lightgreen.png</span><span class="br0">&#41;</span> <span class="kw2">repeat-x</span><span class="sy0">;</span>
&nbsp; <span class="kw1">float</span><span class="sy0">:</span><span class="kw1">left</span><span class="sy0">;</span>margin-<span class="kw1">bottom</span><span class="sy0">:</span><span class="re3">20px</span><span class="sy0">;</span>padding<span class="sy0">:</span><span class="re3">10px</span><span class="sy0">;</span>width<span class="sy0">:</span><span class="re3">690px</span><span class="br0">&#125;</span>
<span class="coMULTI">/* Large radius image backgrounds */</span>
<span class="re1">.boxc</span> <span class="br0">&#123;</span><span class="kw1">position</span><span class="sy0">:</span><span class="kw2">relative</span><span class="sy0">;</span><span class="br0">&#125;</span>
<span class="re1">.boxc</span> b<span class="re1">.cn</span> <span class="br0">&#123;</span> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">10px</span><span class="sy0">;</span> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">10px</span><span class="sy0">;</span> <span class="kw1">background</span><span class="sy0">:</span>
&nbsp;<span class="kw2">url</span><span class="br0">&#40;</span><span class="co2">http://static.technorati.com/static/css/img/corners/white.png</span><span class="br0">&#41;</span> <span class="kw2">no-repeat</span><span class="sy0">;</span>
&nbsp;<span class="kw1">position</span><span class="sy0">:</span><span class="kw2">absolute</span><span class="sy0">;</span>
&nbsp;<span class="br0">&#125;</span>
<span class="re1">.boxc</span> b<span class="re1">.tl</span> <span class="br0">&#123;</span><span class="kw1">top</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">left</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">background-position</span><span class="sy0">:</span> <span class="kw1">top</span> <span class="kw1">left</span><span class="sy0">;</span><span class="br0">&#125;</span>
<span class="re1">.boxc</span> b<span class="re1">.tr</span> <span class="br0">&#123;</span><span class="kw1">top</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">right</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">background-position</span><span class="sy0">:</span> <span class="kw1">top</span> <span class="kw1">right</span><span class="sy0">;</span><span class="br0">&#125;</span>
<span class="re1">.boxc</span> b<span class="re1">.bl</span> <span class="br0">&#123;</span><span class="kw1">bottom</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">left</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">background-position</span><span class="sy0">:</span> <span class="kw1">bottom</span> <span class="kw1">left</span><span class="sy0">;</span><span class="br0">&#125;</span>
<span class="re1">.boxc</span> b<span class="re1">.br</span> <span class="br0">&#123;</span><span class="kw1">bottom</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">right</span><span class="sy0">:</span> <span class="re3">-1px</span><span class="sy0">;</span> <span class="kw1">background-position</span><span class="sy0">:</span> <span class="kw1">bottom</span> <span class="kw1">right</span><span class="sy0">;</span><span class="br0">&#125;</span>

<span class="coMULTI">/* IE Filters */</span>
&nbsp; &nbsp; <span class="sy0">*</span> html <span class="re1">.boxc</span> b<span class="re1">.bl</span> <span class="br0">&#123;</span><span class="kw1">bottom</span><span class="sy0">:</span><span class="re3">-2px</span><span class="br0">&#125;</span>
&nbsp; &nbsp; <span class="sy0">*</span> html <span class="re1">.boxc</span> b<span class="re1">.br</span> <span class="br0">&#123;</span><span class="kw1">bottom</span><span class="sy0">:</span><span class="re3">-2px</span><span class="br0">&#125;</span>
&nbsp; &nbsp; <span class="sy0">*</span> html <span class="re1">.boxc</span> b<span class="re1">.cn</span> <span class="br0">&#123;</span><span class="kw1">background-image</span><span class="sy0">:</span>
&nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">url</span><span class="br0">&#40;</span><span class="co2">http://static.technorati.com/static/css/img/corners/white.gif</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">line-height</span><span class="sy0">:</span> <span class="re3">1px</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3">1px</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</div>
</pre>
<p>So, graphically displayed, the
<div class="codesnip-container" >&lt;b&gt;</div>
<p> elements are actually positioned in each corner with no content:</p>
<p><img src="http://justaddwater.dk/wp-content/uploads/2007/02/technorati-rounded-corner-html-tags-mini.png" id="image553" alt="Technorati screenshot of box with rounded corners on faded background showing HTML elements" /></p>
<p>Note that the background-image for the faded box is one thin sliced faded image:<br />
<img src="http://static.technorati.com/static/css/img/bg/fade-lightgreen.png" alt="technorati faded background slice" /></p>
<p>The corners is made with only one image that&#8217;s positioned differently depending on which corner it&#8217;s in. The image is actually a transparent circle on white background.</p>
<p style="background-color: #339933; color: #dddddd; height: 30px; line-height: 30px"><img src="http://static.technorati.com/static/css/img/corners/white.gif" alt="technorati rounded corner image" /> shown on dark background for clarity.</p>
<p>So I <a href="http://justaddwater.dk/wp-content/uploads/2007/03/technorati-style-rounded-corners.html" title="Example page: technorati-style rounded corners">included the final example on a separate page</a> (because the Wordpress editor doesn&#8217;t let me add the HTML code precisely as it&#8217;s required)</p>
<p><a href="http://justaddwater.dk/wp-content/uploads/2007/03/technorati-style-rounded-corners.html" title="Example page: technorati-style rounded corners">example page: technorati-style rounded corners</a></p>
<p>More info<br />
Eric Meyer: <a href="http://meyerweb.com/eric/thoughts/2005/06/21/technorati-redesigns/">Technorati Redesigns</a> (June 2005)<br />
Smileycat: <a href="http://www.smileycat.com/miaow/archives/000044.html">CSS Rounded Corners Roundup</a></p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/web+standards" rel="tag">web standards</a>, <a href="http://technorati.com/tag/css" rel="tag"> css</a>, <a href="http://technorati.com/tag/html" rel="tag"> html</a>, <a href="http://technorati.com/tag/rounded+corners" rel="tag"> rounded corners</a>, <a href="http://technorati.com/tag/technorati" rel="tag"> technorati</a>, <a href="http://technorati.com/tag/tantek+celic" rel="tag"> tantek celic</a>, <a href="http://technorati.com/tag/eric+meyer" rel="tag"> eric meyer</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/02/15/rounded-corners-the-technorati-way/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Humorous Vista Features (from The Onion)</title>
		<link>http://justaddwater.dk/2007/02/14/humorous-vista-features-from-the-onion/</link>
		<comments>http://justaddwater.dk/2007/02/14/humorous-vista-features-from-the-onion/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 14:36:15 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/02/14/humorous-vista-features-from-the-onion/</guid>
		<description><![CDATA[The Onion has a humorous feature list from Microsoft Vista in the recent issue:
Microsoft Vista Released
Microsoft released its new operating system, Vista, on Jan. 30. Here are some of its features:




Microsoft Word&#8217;s helpful paper-clip icon now blinks at rate of normal humans
Enhanced graphics on &#8220;System Is Not Responding&#8221; pop-up window
Five new card-back designs for Solitaire
Something [...]]]></description>
			<content:encoded><![CDATA[<p>The Onion has a humorous feature list from Microsoft Vista in the recent issue:</p>
<blockquote cite="http://www.theonion.com/content/infograph/microsoft_vista_released"><h2 class="title">Microsoft Vista Released</h2>
<p>Microsoft released its new operating system, Vista, on Jan. 30. Here are some of its features:</p>
<div class="article_photo_alt" style="width: 250px; float:right;"><img src="http://www.theonion.com/content/files/images/Infographic-Microsoft.jpg" alt="Microsoft Vista Released" title="Microsoft Vista Released" height="171" width="250"/>
</p>
</div>
<ul>
<li>Microsoft Word&#8217;s helpful paper-clip icon now blinks at rate of normal humans</li>
<li>Enhanced graphics on &#8220;System Is Not Responding&#8221; pop-up window</li>
<li>Five new card-back designs for Solitaire</li>
<li>Something that Apple would never, ever dream up in a billion years</li>
<li>4,391 security flaws to be patched over next 15 years</li>
<li>Promise of broad, open-minded future or some bullshit</li>
<li>Lists blocked wireless connections with greater speed and accuracy</li>
<li>New operating system, same old Microsoft Paint</li>
</ul>
</blockquote>
<p><strong>What are your best feature list</strong> (be imaginative and humorous)?</p>
<p>Geegish web standards side note: Actually, the HTML for creating the bulleted list in the <a href="http://www.theonion.com/content/infograph/microsoft_vista_released">original The Onion article</a> is a
<div class="codesnip-container" >&lt;div class=&#8221;bulleted&#8221;&gt;</div>
<p> with nested
<div class="codesnip-container" >&lt;p&gt;</div>
<p> elements. Why are they angry with a standard unordered list?</p>
<p>Bonus link: Another fabulous The Onion piece: <a href="http://www.theonion.com/content/node/40076">Google Announces Plan To Destroy All Information It Can&#8217;t Index</a> (from August 2005).</p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/the+onion" rel="tag">the onion</a>, <a href="http://technorati.com/tag/microsoft" rel="tag"> microsoft</a>, <a href="http://technorati.com/tag/windows" rel="tag"> windows</a>, <a href="http://technorati.com/tag/vista" rel="tag"> vista</a>, <a href="http://technorati.com/tag/humor" rel="tag"> humor</a>, <a href="http://technorati.com/tag/paperclip" rel="tag"> paperclip</a>, <a href="http://technorati.com/tag/paint" rel="tag"> paint</a>, <a href="http://technorati.com/tag/solitare" rel="tag"> solitare</a>, <a href="http://technorati.com/tag/security+wireless" rel="tag"> security wireless</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a>, <a href="http://technorati.com/tag/google" rel="tag"> google</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/02/14/humorous-vista-features-from-the-onion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft&#8217;s Commitment to Web Standards</title>
		<link>http://justaddwater.dk/2007/01/19/microsofts-commitment-to-web-standards/</link>
		<comments>http://justaddwater.dk/2007/01/19/microsofts-commitment-to-web-standards/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 23:53:12 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/01/19/microsofts-commitment-to-web-standards/</guid>
		<description><![CDATA[Molly interviewed Bill Gates on Microsoft&#8217;s commitment to web standards. Today, Roger added his comments in his article: Bill Gates on Web standards: Huh?. 
In a brief discussion about web standards, Bill seems to interpret web standards as ws*, xml, etc. He does not really mention html, xhtml, css or similar approaches, which is why [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.molly.com/2006/12/14/who-questions-bill-gates-commitment-to-web-standards/">Molly interviewed Bill Gates</a> on Microsoft&#8217;s commitment to web standards. Today, Roger added his comments in his article: <a href="http://www.456bereastreet.com/archive/200701/bill_gates_on_web_standards_huh/">Bill Gates on Web standards: Huh?</a>. </p>
<p>In a brief discussion about web standards, Bill seems to interpret web standards as ws*, xml, etc. He does not really mention html, xhtml, css or similar approaches, which is why he probably does not follow Molly&#8217;s point to sceptics of Microsofts commitment to webstandards.</p>
<p>Molly:</p>
<blockquote cite="http://www.molly.com/2006/12/14/who-questions-bill-gates-commitment-to-web-standards/"><p>I’m just saying there are a lot of skeptics still out there.</p></blockquote>
<p>Bill Gates:</p>
<blockquote cite="http://www.molly.com/2006/12/14/who-questions-bill-gates-commitment-to-web-standards/"><p>How can they be skeptical? I guess if your job is to be skeptical, you’d hate to be out of a job!</p></blockquote>
<p>Roger Johansson follows up on his blog:<br />
Roger:</p>
<blockquote cite="http://www.456bereastreet.com/archive/200701/bill_gates_on_web_standards_huh/"><p>No, Bill, that is not why people are skeptical. They are skeptical because they find it hard to believe that the richest company in the world can’t afford to make a Web browser whose Web standards support matches that of browsers created by non-profit organisations, open source projects, and one man bands.</p></blockquote>
<p>With the release of IE 7, I think that Microsoft has actually showed that it&#8217;s browser team is very comitted to pushing web standards to a better level. But there is another issue that &mdash; in my opinion &mdash; is more important because it affects the hordes of developers using Microsoft technology. </p>
<p>My biggest concern, therefore, is not the browser, but the Microsoft developer tools and their lack of focus on webstandards.</p>
<h2>Microsoft tools lack support of web standards</h2>
<p><strong>The biggest issue is not IE&#8217;s commitment to webstandards, but Microsoft and it&#8217;s developer tools&#8217; commitment to webstandards</strong></p>
<p>And no, recent support for xhtml validation does not make your tools entirely focused on webstandards.</p>
<p>I have seen recent books bought by colleagues at work, where every piece of HTML is table based layouts, FONT tags, all capital tags, etc.</p>
<p>So there might be a commitment on the strategic level, but it&#8217;s very badly executed. I&#8217;d really appreciate if you post a comment with any examples you stumble upon.</p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/microsoft" rel="tag">microsoft</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a>, <a href="http://technorati.com/tag/support" rel="tag"> support</a>, <a href="http://technorati.com/tag/webstandards" rel="tag"> webstandards</a>, <a href="http://technorati.com/tag/456bereastreet" rel="tag"> 456bereastreet</a>, <a href="http://technorati.com/tag/molly" rel="tag"> molly</a>, <a href="http://technorati.com/tag/bill+gates" rel="tag"> bill gates</a>, <a href="http://technorati.com/tag/ie" rel="tag"> ie</a>, <a href="http://technorati.com/tag/ie7" rel="tag"> ie7</a>, <a href="http://technorati.com/tag/html" rel="tag"> html</a>, <a href="http://technorati.com/tag/xhtml" rel="tag"> xhtml</a>, <a href="http://technorati.com/tag/validation" rel="tag"> validation</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/01/19/microsofts-commitment-to-web-standards/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>More visual HTML jokes</title>
		<link>http://justaddwater.dk/2007/01/05/more-visual-html-jokes/</link>
		<comments>http://justaddwater.dk/2007/01/05/more-visual-html-jokes/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 09:49:11 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[Best of Justaddwater]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Humor]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2007/01/05/more-visual-html-jokes/</guid>
		<description><![CDATA[More visual HTML tags inspired by Neatorama’s “Visual HTML joke” that got digged recently.
<p><a href="http://justaddwater.dk/2007/01/05/more-visual-html-jokes/"><img id="image503" src="http://justaddwater.dk/wp-content/uploads/2007/01/258758222_f5ad157c7d-better-body.thumbnail.jpg" alt="female body for html body tag" /><img id="image499" src="http://justaddwater.dk/wp-content/uploads/2007/01/311161230_358281a617-submarine.thumbnail.jpg" alt="submarine for html sub tag" /></a></p>]]></description>
			<content:encoded><![CDATA[<p>Inspired by Neatorama&#8217;s &#8220;<a href="http://www.neatorama.com/2007/01/01/visual-html-joke/">Visual HTML joke</a>&#8221; that got <a href="http://digg.com/programming/Visual_HTML_joke">digged</a> recently. </p>
<p>If you have not yet seen it, it&#8217;s an
<div class="codesnip-container" >&lt;i&gt;</div>
<p>-tag on each side of the Tower of Pisa:<br />
<a href="http://www.neatorama.com/2007/01/01/visual-html-joke/"><img id="image500" src="http://justaddwater.dk/wp-content/uploads/2007/01/html-tag-italicized.thumbnail.jpg" alt="original photo italic tag " /></a></p>
<p>I decided to visualize a few HTML tags myself:</p>
<p><img id="image496" src="http://justaddwater.dk/wp-content/uploads/2007/01/340503313_08ddd76886-base.jpg" alt="baseball base for base tag" /><br />
Modified from <a href="http://flickr.com/photos/mikemac29/340503313/">http://flickr.com/photos/mikemac29/340503313/</a></p>
<p><img id="image498" src="http://justaddwater.dk/wp-content/uploads/2007/01/18550828_107d4f01d0-greek-temple.jpg" alt="Greek temple for colgroup tag" /><br />
Modified from <a href="http://flickr.com/photos/jorgeorte/18550828/">http://flickr.com/photos/jorgeorte/18550828/</a></p>
<p><img id="image499" src="http://justaddwater.dk/wp-content/uploads/2007/01/311161230_358281a617-submarine.jpg" alt="submarine for html sub tag" /><br />
Modified from <a href="http://flickr.com/photos/maddiedigital/311161230/">http://flickr.com/photos/maddiedigital/311161230/</a></p>
<p><img id="image497" src="http://justaddwater.dk/wp-content/uploads/2007/01/337567708_ccbfea4bd6-table.jpg" alt="Old table for table tag" /><br />
Modified from <a href="http://flickr.com/photos/anabananasplit/337567708/">http://flickr.com/photos/anabananasplit/337567708/</a></p>
<p><img id="image503" src="http://justaddwater.dk/wp-content/uploads/2007/01/258758222_f5ad157c7d-better-body.jpg" alt="female body for html body tag" /><br />
Modified from <a href="http://flickr.com/photos/idua_japan/258758222/">http://flickr.com/photos/idua_japan/258758222/</a></p>
<p>All photos are Creative Commons license that I found on Flickr via the creative commons search option. If you feel like contributing, we could start a <strong>complete HTML tag visualization encyclopedia</strong>. <a href="http://dalager.com">Dalager</a> told me he will create a photo pool on Flickr.</p>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/html" rel="tag">html</a>, <a href="http://technorati.com/tag/tag" rel="tag"> tag</a>, <a href="http://technorati.com/tag/visualization" rel="tag"> visualization</a>, <a href="http://technorati.com/tag/fun" rel="tag"> fun</a>, <a href="http://technorati.com/tag/humour" rel="tag"> humour</a>, <a href="http://technorati.com/tag/flickr" rel="tag"> flickr</a>, <a href="http://technorati.com/tag/photo+pool" rel="tag"> photo pool</a>, <a href="http://technorati.com/tag/creative+commons" rel="tag"> creative commons</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2007/01/05/more-visual-html-jokes/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Technique &#8212; locating problems in HTML</title>
		<link>http://justaddwater.dk/2006/09/18/technique/</link>
		<comments>http://justaddwater.dk/2006/09/18/technique/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 20:37:19 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[justaddwater.dk]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2006/09/18/technique/</guid>
		<description><![CDATA[Technique for using the toolbox: Locating problems in HTML.
I decided to make a little toolbox that&#8217;s easy to apply on web pages, when investigating problems with web pages. Basically, it&#8217;s the tools I used when investigating the case I described in  &#8220;Why web standards matter (case study)&#8221;
I split this into two posts. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Technique for using the toolbox: Locating problems in HTML.</p>
<p>I decided to make a little toolbox that&#8217;s easy to apply on web pages, when investigating problems with web pages. Basically, it&#8217;s the tools I used when investigating the case I described in  &#8220;<a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Why web standards matter (case study)</a>&#8221;</p>
<p>I split this into two posts. This is the second part. The first one is about the <a href="http://justaddwater.dk/2006/09/18/toolbox">toolbox</a>.</p>
<h3>Web standards investigation technique</h3>
<p>The case study shwoed a page in big trouble and the problem turned out to be a combination of different things that led to the guidelines:</p>
<ul>
<li>Avoid JavaScript (where appropriate)</li>
<li>Remove HTML errors and warnings</li>
<li>Remove elements without content</li>
</ul>
<p>The following steps can be used on any page to assess if the page is likely to benefit from a rework. Of course I cannot guarantee that the investigation technique can find the root to trouble on any page. And it&#8217;s not likely that this checklist can replace a thorough investigation (which you&#8217;ll probably end up with in some cases). </p>
<p>However it might be a good starting point if something is not working or going wrong.</p>
<p><a href="#technique1">JavaScript errors</a><br />
<a href="#technique2">HTML errors and warnings</a><br />
<a href="#technique3">Total code weight</a><br />
<a href="#technique4">Content to markup ratio</a><br />
<a href="#technique5">Number of
<div class="codesnip-container" >img</div>
<p> elements</a><br />
<a href="#technique6">Number of
<div class="codesnip-container" >table</div>
<p> elements (used for layout)</a><br />
<a href="#technique7">Total number of elements in the DOM</a></p>
<dl>
<dt><a name="technique1"></a>1. JavaScript errors</dt>
<dd>JavaScript errors are important to get rid of as errors in JavaScript prevent your code from running. The Firebug extension for Firefox comes in handy, as it shows a little icon on the statusbar. It&#8217;s normally a green checkmark (but converts to a red icon and displays the number of JavaScript errors. A click shows the Firebug console with additional information on each error. Goal is to have 0 JavaScript errors.</dd>
<dd>A little more on JavaScript should be avoided (where appropriate): JavaScript is perfectly OK to use for adding functionality to your page. But, you should probably not use it for things like making a print version of you page (use CSS), or render stuff on your page during load (
<div class="codesnip-container" >document.write</div>
<p>).</dd>
<dt><a name="technique2"></a>2. HTML errors and warnings</dt>
<dd>HTML errors and warnings will in most cases lead to browser misinterpretation of your web page (because web standards only describe what to do when HTML is correct). HTML Validator (based on Tidy) comes in handy here: It shows an icon in the status bar. The icon is a green checkmark that changes to a warning icon whenever errors are present (and there is a setting that shows you both the icon and text about how many warnings.</dd>
<dd>The error messages are mostly good, letting you know exactly where the problem is in the HTML source.</dd>
<dd>Its realistic to aim for 0 HTML errors and warnings (but on a rare occation there can be reasons for leaving a few warnings in).</dd>
<dt><a name="technique3"></a>3. Total code weight</dt>
<dd>The &#8220;page info&#8221; bookmarklet tells you total code weight. In general, this number should be as low as possible because that means sending fewer bytes to the client, making code easier to interpret for the browser.</dd>
<dd>Ideally, </dd>
<dt><a name="technique4"></a>4. Content to markup ratio</dt>
<dd>Also from the &#8220;page info&#8221; bookmarklet. The relation between size of content compared to entire footprint of HTML page. The higher ratio the better. </dd>
<dd>In my experience, pages designed using tables and transparent images for layout has a content/markup ratio around 10-20%. Removing tables and unnecessary pixels easily bring the ratio up on the better side of 50%.</dd>
<dd>Of course, the exact ratio to aim for is depending on the type of page: The more content-heavy, the better the ratio.</dd>
<dt><a name="technique5"></a>5. Number of
<div class="codesnip-container" >img</div>
<p> elements</dt>
<dd>Count number of images with bookmarlet &#8220;#img&#8221;. The number itself should respond approximately to the number of images providing content on the page. Use it to assess if there are transparent images or other images that don&#8217;t convey any content to the user.</dd>
<dt><a name="technique6"></a>6. Number of
<div class="codesnip-container" >table</div>
<p> elements (used for layout)</dt>
<dd>Count number with bookmarklet &#8220;#table&#8221;. Use it to assess if tables are used for layout. Tables should only be used for tabular content. Also, the other bookmarklet &#8220;Number table rows&#8221; is sometimes handy to count the number of rows used.</dd>
<dt><a name="technique7"></a>7. Total number of elements in the DOM</dt>
<dd>Count total number of elements in DOM with the bookmarklet &#8220;#elements&#8221;. In the case study, I had a page with 27,000 DOM nodes (and that was asking for trouble).</dd>
</dl>
<p>All in all, these numbers can hint problems in your page and make it easier to guess what to do about it. I&#8217;m using this to estimate which pages to change (and which could be left).</p>
<h3>Summary</h3>
<p>These are the basic techniques that have been helpful for me when investigating web standards related issues in web pages. The technique here is complimented with the page describing the <a href="http://justaddwater.dk/2006/09/18/toolbox">toolbox for locating problems in HTML</a>.</p>
<p>Related reading:</p>
<ul>
<li><a href="http://justaddwater.dk/2006/09/18/toolbox">toolbox for locating problems in HTML</a></li>
<li><a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Why web standards matter (case study)</a></li>
</ul>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/javascript" rel="tag">javascript</a>, <a href="http://technorati.com/tag/bookmarklet" rel="tag"> bookmarklet</a>, <a href="http://technorati.com/tag/toolbox" rel="tag"> toolbox</a>, <a href="http://technorati.com/tag/webstandards" rel="tag"> webstandards</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2006/09/18/technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toolbox &#8212; locating problems in HTML</title>
		<link>http://justaddwater.dk/2006/09/18/toolbox/</link>
		<comments>http://justaddwater.dk/2006/09/18/toolbox/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 20:35:58 +0000</pubDate>
		<dc:creator>Jesper Rønn-Jensen</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://justaddwater.dk/2006/09/18/toolbox/</guid>
		<description><![CDATA[I decided to make a little toolbox that&#8217;s easy to apply on web pages, when investigating problems with web pages. Basically, it&#8217;s the tools I used when investigating the case I described in  &#8220;Why web standards matter (case study)&#8221;
I decided to split this into two posts. This first one is about the toolbox. The [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to make a little toolbox that&#8217;s easy to apply on web pages, when investigating problems with web pages. Basically, it&#8217;s the tools I used when investigating the case I described in  &#8220;<a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Why web standards matter (case study)</a>&#8221;</p>
<p>I decided to split this into two posts. This first one is about the toolbox. The second part is about the <a href="http://justaddwater.dk/2006/09/18/technique">investigation technique</a> (available separately).</p>
<h3>Firefox Extensions for the toolbox</h3>
<p>I use Firefox for the investigation. It has the best web developer tools and bookmarklet support. <a href="http://www.getfirefox.com">Get firefox</a>.</p>
<ol>
<li><a href="http://users.skynet.be/mgueury/mozilla/">HTML Validator (based on Tidy)</a>. HTML validation errors and warnings immediately in the status bar on the page you watch. Indispensible when aiming for standards compatible websites.</li>
<li><a href="http://www.joehewitt.com/software/firebug/">Firebug</a>. JavaScript errors and warnings immediately in the status bar. </li>
<li>Firefox <a href="http://www.chrispederick.com/work/webdeveloper/">Web Developer Toolbar</a>. Has a lot of handy tools, among others the ability to turn off CSS stylesheets.</li>
</ol>
<p>For a more indepth description of Firefox extensions, refer to my previous post from last year: <a href="http://justaddwater.dk/2005/11/30/web-developers-collection-of-browser-tools">Web developer&#8217;s collection of browser tools</a>.</p>
<h3>JavaScript bookmarklets</h3>
<p>Bookmarklets are small JavaScript snippets, that is stored as a bookmark and executed on any page. I prepared a collection useful for investigating web standards issues.</p>
<p>Import all at once (separate HTML page):</p>
<p style="text-align:center"><strong><a id="p394" href="http://justaddwater.dk/wp-content/uploads/2006/09/web-standards-investigation-tools.html">Web Standards Investigation Tools (WSIT)  HTML page</a></strong><br /><small>(last updated 2006-09-18)</small></p>
<p>Instruction: </p>
<ol>
<li>Save the linked HTML page locally</li>
<li>Open Firefox Bookmark Manager (Bookmarks &gt; Manage Bookmarks) </li>
<li>Choose File &gt; Import &hellip; </li>
<li>Import bookmarks into &#8220;Bookmarks Toolbar Folder&#8221; for easy access to them.</li>
</ol>
<p>The bookmark above contains the following bookmarklets. I list them with a &#8220;shortname&#8221; </p>
<ol>
<li><strong>Page Info</strong> (contains key figures about content to markup ratio, total code weight and number of image elements. Shortname: pInfo</li>
<li><strong>Mouse Over DOM Inspector 2</strong>. Turned on, you simply hover any element to learn about  attributes, children and ancestors. Probably the easiest way to investigate a HTML page. Shortname: modi2</li>
<li><strong>JavaScript Shell</strong>. Opens a JavaScript Shell and allows it to access the current page. Shortname: Shell</li>
</ol>
<p>A few other bookmarklets that I use frequently for furthter investigations, but they are not used in my description.</p>
<ol start="4">
<li><strong>JavaScript Variables</strong>. Displays all JavaScript variables and functions. Shortname: JS vars</li>
<li><strong>Cookie editor</strong>. View, delete and edit cookies. (Will be available later due to a server crash).</li>
<li><strong>Table number rows</strong>. Numbers each table row (makes it easy to see if tables are used for layout). Shortname: Trow</li>
</ol>
<h3>More info about the bookmarklets.</h3>
<p><a href="http://slayeroffice.com/?c=/content/tools/pagenfo.html" title="Slayeroffice.com: Page Info">Page Info</a> and <a href="http://slayeroffice.com/tools/modi/v2.0/modi_help.html" title="Slayeroffice.com: MODI2">Mouse Over DOM inspector</a> are part of Steve Chipman&#8217;s bookmarklet collection &#8220;<a href="http://slayeroffice.com/?c=/content/tools/suite.html" title="Slayeroffice.com: Favelet Suite">Favelet Suite</a>&#8221; which is definately worth a mention. </p>
<p>JavaScript Shell, JS Variables and Table number row are from Jesse Ruderman&#8217;s indispensable <a href="http://squarefree.com/bookmarklets/">webdevelopers bookmarklet collection</a> (which you can <a href="http://squarefree.com/bookmarklets/importall.html">download as one file</a>)</p>
<p>The Cookie editor is my own invention. Will be available later as I will move it to a new server. </p>
<h3>Summary</h3>
<p>These are the basic tools that have been helpful for me when investigating web standards related issues in web pages. The toolbox here is complimented with the page describing the technique for locating problems in HTML.</p>
<p>Related reading:</p>
<ul>
<li><a href="http://justaddwater.dk/2006/09/18/technique">technique for locating problems in HTML</a></li>
<li><a href="http://justaddwater.dk/2006/06/29/webstandards-case-study/">Why web standards matter (case study)</a></li>
</ul>
<p><small>Technorati Tags: <a href="http://technorati.com/tag/javascript" rel="tag">javascript</a>, <a href="http://technorati.com/tag/bookmarklet" rel="tag"> bookmarklet</a>, <a href="http://technorati.com/tag/toolbox" rel="tag"> toolbox</a>, <a href="http://technorati.com/tag/webstandards" rel="tag"> webstandards</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://justaddwater.dk/2006/09/18/toolbox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
