Don’t call me DOM

4 January 2011

My book on mobile Web design and development

Book cover

I’ve spent a fair amount of my spare time over the past few months writing a book (in French) on mobile Web design and development, with my colleague François Daoust.

The book is now finally available, under the title Relever le défi du Web mobile (taking up the mobile Web challenge) — it can be ordered for instance from

We’ve also built a Web site to accompany the book,, which allows our readers to follow the various links given in the book, copy the code samples, and get corrections and updates as we produce them.

22 November 2010

Focusing on HTML forms fields through a link

Filed under:

I inquired earlier today if there was a way to give focus to an HTML form field through a simple link.

The reason of my inquiry was that WCAG 2.0 recommends to make it possible for the user [to] easily navigate to [detected form submission errors] to fix the problem.

But in practice, with the following HTML form:

<p><label for='email' id='emaillabel'>Email:</label>
<input type='text' id='email' name='email'></p>

neither a link to #email nor to #emaillabel will give focus to the input field.

For instance, it would be useful to be able to markup a possible error message above that form as follows:

21 July 2010

Using the W3C cheatsheet as a “smart bookmark”

Filed under:

One of the users of the W3C cheatsheet (of which a new version was released yesterday including HTML5) reminded me of a nifty feature available in a number of browsers, the so called “smart bookmarks”, and how they could be used with the cheatsheet.

A smart bookmark is basically a bookmark where a part of the URL can be replaced by a user entered string; depending on the browser, this smart bookmark can then be invoked with a said string to bring you directly to a specific page (often, a search result).

Older entries »

Picture of Dominique Hazael-MassieuxDominique Hazaël-Massieux ( is part of the World Wide Web Consortium (W3C) Staff; his interests cover a number of Web technologies, as well as the usage of open source software in a distributed work environment.