DEV 5.5 Use structural and semantic markup properly and validate code

Examples

Address example

<address>National Disability Authority, 25 Clyde Road, Dublin 4</address>

Blockquote example

<blockquote>The power of the Internet is in its universality... </blockquote>
<p>Tim Berners Lee</p>

Strong and emphasis

this is <em>important</em> but this is <strong> even more important <strong>...

do not misuse <blockquote> to create an indent, or <em> to create italic. Use <strong> not <b> if something deserves highlighting

Structural / semantic coding - use these:

  • h1...h6, p;
  • em, strong;
  • cite, blockquote;
  • ul, ol, li;
  • dl, dt, dd;
  • address;
  • code.

Deprecated - Do not use these:

  • applet, basefont, center, dir, font, menu, s, strike, u;
  • although not deprecated, avoid b, i (use CSS instead.)