<?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>Big Red Tin &#187; html</title>
	<atom:link href="http://bigredtin.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigredtin.com</link>
	<description>Thoughts about the web and business from the large pantry</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:55:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>HTML5: I couldn&#8217;t (quite) do it</title>
		<link>http://bigredtin.com/2010/html5-couldnt-do-it/</link>
		<comments>http://bigredtin.com/2010/html5-couldnt-do-it/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 04:40:36 +0000</pubDate>
		<dc:creator>Peter Wilson</dc:creator>
				<category><![CDATA[Behind the Websites]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://bigredtin.com/?p=967</guid>
		<description><![CDATA[I found it difficult to use pure and semantic <abbr>HTML5</abbr> when dealing with current versions of Internet Explorer. I really tried to adopt the commonly advocated view that it's okay to require website visitors have JavaScript enabled but settled on a different option I could actually live with.]]></description>
			<content:encoded><![CDATA[<p>For most of my career as a web developer I&#8217;ve produced websites that work without JavaScript. For the JavaScript impaired the sites may be missing a minor visual feature or be a little clunky in places, but they work and the meaning remains clear. It doesn&#8217;t bother me that, sometimes, the cost of allowing for sites to load without JavaScript can mean missing out on the latest web fashion. I&#8217;m <a title="Why I will not be dropping support for IE6" href="http://bigredtin.com/behind-the-websites/not-dropping-ie6/">not a big fan of fashion</a>.</p>
<p>Currently, web development is undergoing some major transitions: the <abbr>HTML5</abbr> spec is being developed and <abbr>CSS3</abbr> is being implemented. The browser wars have returned, although this time around, it&#8217;s a battle to win developers&#8217; hearts by implementing the newest standards.</p>
<p>Now is the time for developers to re-evaluate their past practices; moving on from the old and embracing the new. I kept that ethos in mind when upgrading the Soupgiant WordPress base theme recently. Among other things we were porting it to <abbr>HTML5</abbr>.</p>
<p><span id="more-967"></span></p>
<p>I really tried to adopt the commonly advocated view that it&#8217;s okay to require website visitors have JavaScript enabled. It was going very well, right up to the final hurdle when I couldn&#8217;t resist checking the site I was working on without JavaScript.</p>
<p>Everything looked fine in Chrome, Firefox, and Opera. It was, predictably, Internet Explorer that threw a spanner in the works. For an artist&#8217;s impression, <a href="http://code.bigredtin.com/html5/">visit the demo in <abbr>IE8</abbr></a> (<a href="http://www.webpagetest.org/result/101213_2W1A/1/screen_shot/">screenshot</a> via WebPageTest):</p>
<div id="attachment_970" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.webpagetest.org/result/101213_2W1A/1/screen_shot/"><img class="size-medium wp-image-970 " title="HTML5 as seen in IE8" src="http://bigredtin.com/files/2010/12/ie8html5-300x166.jpg" alt="" width="300" height="166" /></a><p class="wp-caption-text">HTML5 as seen in IE8</p></div>
<p>Without <a href="http://remysharp.com/2009/01/07/html5-enabling-script/">Remy Sharp&#8217;s <abbr>HTML5</abbr> enabling script</a> the site I was working on was unusable, if anything, it looked worse than the demo provided.</p>
<p>I couldn&#8217;t, in good faith, sell a website to a client that some visitors would find unstyled, half styled or difficult to follow in places. I didn&#8217;t want to throw out the baby with the bathwater, the additional meaning provided by <abbr>HTML5</abbr> elements is just too great. <code>&lt;header&gt;</code>, <code>&lt;section&gt;</code>, <code>&lt;nav&gt;</code>, <code>&lt;article&gt;</code>, etc all provide meaning to a document that it&#8217;s difficult to justify going without.</p>
<p>It&#8217;s with the additional meaning in mind that I decided to go with &#8211; what I&#8217;ve dubbed &#8211; <abbr>HTML4.5</abbr>. <abbr>HTML5</abbr> provides the meaning while using traditional <abbr>HTML</abbr> 4 tags as hooks for styling. It introduces a bit of tag soup, as instead of <code>&lt;article id="content"&gt; ... &lt;/article&gt;</code> the code becomes <code>&lt;div id="content"&gt;&lt;article&gt; ... &lt;/article&gt;&lt;/div&gt;</code>.</p>
<p>The improvement to site I was working on was immediate, as you can see by <a href="http://code.bigredtin.com/html5/html45.html">visiting the <abbr>html4.5</abbr> demo in IE8</a> (<a href="http://www.webpagetest.org/result/101213_2W1B/1/screen_shot/">screenshot</a> via WebPageTest):</p>
<div id="attachment_973" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.webpagetest.org/result/101213_2W1B/1/screen_shot/"><img class="size-medium wp-image-973" title="HTML4.5 as seen in IE8" src="http://bigredtin.com/files/2010/12/html45-300x174.jpg" alt="" width="300" height="174" /></a><p class="wp-caption-text">HTML4.5 as seen in IE8</p></div>
<h4>I don&#8217;t care about tag soup</h4>
<p>If given the choice between an unusable website for some visitors or a little tag bloat, I&#8217;ll take the bloat any day of the week. In the demo the bloat adds an extra 14 bytes. On the home page for the site I was working on, it&#8217;s 40 bytes. I save plenty more than 40 bytes by minimising my JavaScript and <abbr>CSS</abbr> (a single key combo with the <a href="http://www.experienceinternet.co.uk/software/yui-compressor-textmate-bundle/">YUI Compressor TextMate bundle</a>), so I&#8217;m not too concerned about the side effects.</p>
<p>A technically beautiful site is the ideal but if a portion of your visitors can&#8217;t use it, then the beauty isn&#8217;t even skin deep. As <a href="http://allinthehead.com/">Drew McLellan</a> said recently on <a href="http://24ways.org/2010/finding-your-way-with-static-maps">24 ways</a>, progressive enhancement is &#8220;also known as doing our jobs properly.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://bigredtin.com/2010/html5-couldnt-do-it/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Forms are forms, not lists</title>
		<link>http://bigredtin.com/2010/forms-are-forms-not-lists/</link>
		<comments>http://bigredtin.com/2010/forms-are-forms-not-lists/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 00:00:04 +0000</pubDate>
		<dc:creator>Peter Wilson</dc:creator>
				<category><![CDATA[Behind the Websites]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[lists]]></category>
		<category><![CDATA[tabels]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://bigredtin.com/?p=908</guid>
		<description><![CDATA[I have often seen HTML forms coded as part of a lists, including from some publications and people I highly respect. I believe this to be incorrect.]]></description>
			<content:encoded><![CDATA[<p>Respecting someone or their publication does not prevent one from disagreeing with them. In fact, I think to nod along saying &#8220;you&#8217;re so right, <em>OMG, you are so right!</em>&#8221; is less respectful than listening to and considering what they say. That dealt with, allow me to disagree with some people I respect.</p>
<p>Frequently, I see HTML forms coded as lists. I&#8217;ve seen this in code by some publications and people I highly respect, such as on <a title="A List Apart: Forward thinking form validation" href="http://www.alistapart.com/articles/forward-thinking-form-validation/">A List Apart</a>. The code may be:</p>
<pre><code>&lt;form action="example.php" method="post"&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;label for="itemOne"&gt;Item One&lt;/label&gt;
    &lt;input id="itemOne" name="itemOne" /&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;label for="itemTwo"&gt;Item Two&lt;/label&gt;
    &lt;input id="itemTwo" name="itemTwo" /&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;/form&gt;</code></pre>
<p><span id="more-908"></span></p>
<p>The method remains much the same if using unordered or definition lists. The argument for using this method is that forms are a list of fields. A variation is to use a table, arguing that forms are a table of labels and inputs.</p>
<p>I don&#8217;t believe either argument is correct, I believe forms are a series of:</p>
<ul>
<li><code>fieldset</code>s;</li>
<li><code>legend</code>s;</li>
<li><code>label</code>s;</li>
<li><code>button</code>s;</li>
<li><code>input</code>s, <code>select</code>s, <code>option</code>s, etc.</li>
</ul>
<p>All semantic meaning for forms should come from the appropriate <abbr>HTML</abbr> tags. If you want to use other elements as hooks for styling, they should be semantically meaningless <code>span</code>s and <code>div</code>s.</p>
<p>I consider the arguments cited above as justifications for making styling easier. Without block elements, forms <em>can</em> be difficult to style. Rather than wrapping each input pair with a list item, I wrap them with <code>div</code>s.</p>
<pre><code>&lt;form action="example.php" method="post"&gt;
&lt;div&gt;
  &lt;label for="itemOne"&gt;Item One&lt;/label&gt;
  &lt;input id="itemOne" name="itemOne" /&gt;
&lt;/div&gt;
&lt;/form&gt;</code></pre>
<p>Wrapping each input pair in a <code>div</code> is just as lazy as wrapping each input pair in a list item. However, as <code>div</code>s are meaningless, it doesn&#8217;t require bending of semantics to justify my actions.</p>
<p>There is a valid argument for an element to define an input pair but I think such an element is redundant. We already have a method for defining the pairing of labels with their inputs. The &#8220;<code>for</code>&#8221; attribute within the <code>label</code> pairs with the &#8220;<code>id</code>&#8221; attribute of the associated <code>input</code>.</p>
<p>If you wrap your forms in a list or a table, look carefully at what you are doing. Ask yourself; is what you are doing semantically valid or are you lazily trying to make styling easier? As context for your consideration, ask yourself if a whole page of text is really just a list of paragraphs.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigredtin.com/2010/forms-are-forms-not-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links opening in new windows</title>
		<link>http://bigredtin.com/2008/links-opening-in-new-windows/</link>
		<comments>http://bigredtin.com/2008/links-opening-in-new-windows/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 07:23:57 +0000</pubDate>
		<dc:creator>Josh Kinal</dc:creator>
				<category><![CDATA[Behind the Websites]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://soupgiant.mu.pwcc.cc/?p=158</guid>
		<description><![CDATA[Yes I have firm views. Take that as a given. Since long before I could code, however, I've always been critical of websites that open their links in another window.

Back in the days before browser tabs, a whole new window would open either above or below the window you were currently working on. It was terrible and unstoppable.]]></description>
			<content:encoded><![CDATA[<p>Yes I have firm views. Take that as a given. Since long before I could code, however, I&#8217;ve always been critical of websites that open their links in another window.</p>
<p>Back in the days before browser tabs, a whole new window would open either above or below the window you were currently working on. It was terrible and unstoppable. People kept up this practice because they thought it was a good way to get a user to keep their website open. It was seen as an audience retention device.</p>
<p>The browser belongs to the user. The website belongs to the creator. The website should not perform any actions on the browser that the user cannot control. That should almost always be the situation.</p>
<p>By keeping things uniform we can set expectations with the user that links will always open in the same window and if they want to open the link in another window they have options like middle-clicking or context-menus.</p>
<p>Of course there are exceptions to this. Banks often open up a separate window for logging in and doing actual banking because they can ensure an extra level of security if, when logging out, they can close the whole window.</p>
<p>The best way to keep a user coming back to your site is to have compelling content. They can always come back by pressing the back button if they meant to open in a new window but forgot.</p>
<p>Another problem with opening links in new windows comes with reporting. Reporting and analytics is another post for another time but many people still use the metrics of a visiting time. The time a user stays connected to a site become a dirty statistic if they actually navigate away from the page but it stays open in a seperate browser window. The website owner doesn&#8217;t really have an indication of how useful/entertaining/compelling their site is, all they know is they could fool some script into thinking that people were still there even when they weren&#8217;t.</p>
<p>These are just some thoughts. Many theories abound in any workplace so I&#8217;m sure yours has some too. Feel free to let me know in the comments.</p>
<p><em>UPDATED: This post was inspired by a discussion, in turn inspired by an article in <a href="http://www.smashingmagazine.com/2008/07/01/should-links-open-in-new-windows/">Smashing Magazine</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://bigredtin.com/2008/links-opening-in-new-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

