4.2.2. Use HTML tags for their semantic value

HTML tags must be used for their intended purpose, not for the visual effect they provide.

For example:

Tags Incorrect usage Correct usage
<blockquote> Indent text Tag a block quote
<ul> and <li> Display a bullet point Tag lists
<fieldset> Display a border Group related form items
<h1> to <h6> Display larger or smaller text sizes Define heading levels in hierarchy
notices/html-css/employer-les-balises-html-pour-leur-valeur-semantique.txt · Last modified: 11 June 2013 at 14:20 by Sébastien Delorme (Atalan)
 

Project coordinated by Atalan.

In partnership with:

Observers: