Skip navigation.

6.5 Use structural and semantic markup properly and validate code

Examples

Good: Address element to enclose addresses Good: Strong element to important word Good: Blockquote to enclose a quotation


Poor: B to mark an important word, blockquote to indent, em to make italic

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)