While validation will remain your front-line defense against pages that render poorly in the browser, there is a suite of other testing tools that can help you determine that you’ve created your page the right way, most especially for search engines. As a broad rule, these tools should be used after you’ve validated the page.
One of the advances that HTML5 has provided us is the ability to create pages that are far richer in semantics: generic
<div> elements with
id replaced with
<aside> and more.
Validation will tell you if you’ve used these tags in the right order, but to actually understand the structure of your page, you should view your page in an HTML5 Outliner. Like the validator, the outliner accepts input either directly or from a URL.
Very simply, an outliner looks at the structure and headings of your page, and maps it as a series of nested ordered lists. As an example, this is a map of this article in the context of this blog:
- featured articles
- popular favourites
- HTML5 Testing Tools
- HTML5 Outliners
- Rich Snippets Testing Tool
- Facebook Linter
- web developer guide
- featured comment
- what i'm reading
- what i'm watching
- what i'm playing
- what i'm hearing
- no ads ever
- creative commons licensed
Some common errors reported in the outliner:
- If you find entries in the outliner are untitled, you are probably not using headings correctly.
- If you find numbers skipped, you are likely not resetting your headings. (Remember that using
<aside>resets your elements in HTML5: you use
<h1>again from the start).
Rich Snippets Testing Tool
The advent of HTML5 has meant that search engines are now moving on from looking at metatags within the
<head> of web pages to far more discrete, particular information, most especially in the form of microdata. The tools available to test this are less advanced, the schema proposal only being a year old. The only reliable service that I am aware of that tests “rich snippets”, as Google calls microdata-enhanced pages, is the Rich Snippets Testing Tool. There is no offline version yet available for the tool: the page to test must be on a public server.
While not directly related to HTML5, it is worthwhile mentioning the Facebook Linter (aka the Facebook debugger), which can show how your page appears to Facebook, together with any errors the Facebook crawler encounters. Like the Rich Snippets Testing Tool, the page to test must be on a publicly accessible server.