html

To Section Or To Article In HTML5

A friend of mine recently pointed out that the many explanations of section and article elements in HTML5 leave a lot of questions unanswered and it makes it hard to choose the correct element that has the best semantic representation of the content. My understanding is based on a brief online conversation with the mighty […]

Dashes Verses Underscores In Web Addresses

Google have confirmed that they treat dashes (-) and underscores (_) differently when they index your website in preparation of people searching for your awesome content. The difference is subtle, but important. Let’s explore it with a simple example. The example is: Your-Article-Name – or with underscores, Your_Article_Name The first example, Your-Article-Name, is treated by […]

Do I Need To Validate My HTML

I get asked this a lot. Seriously. Do I need to validate my HTML (or XHTML). The answer is 100%, categorically yes. You should validate your HTML when you write a page. You should validate it each time you change you page. Sometimes you should validate it even when you haven’t changed your page. Valid […]

HTML 5 Video In Real Life

Update! Here are the results of a full test using a mark-up only HTML5 video demo from Bruce Lawson. Browser Version Plays Format Total Loads Safari 5.0.5 (7533.21.1) Yes turkish.mp4* 1 full Firefox 4.0.1 Yes turkish.ogg 1 full 3 partial Opera 11.11.2109 Yes turkish.webm 1 full IE 9.0.8112.16421 Yes turkish.mp4 1 full 1 partial Chrome […]

HTML 5 Url Input Can Be Quite Strict

Following on from my articles on HTML5 Forms, I have been busy trying things out in various browsers, old and new. I have noticed that the input of type “url” in HTML5 is being validated pretty strictly by some browsers. For example, the following is treated as valid input: http://www.stevefenton.co.uk/ But none of these are: […]