Semantic HTML tips

04 November 2007 · 0 comments

Roger Johansson has some sensible and simple tips for semantic HTML — something we should all be doing — in his post POSH – Plain Old Semantic HTML. Here are just a couple, but head over to his post for the rest: Use heading elements (h1 – h6) for headings, and make sure they create [...]

 

Roger Johansson has some sensible and simple tips for semantic HTML — something we should all be doing — in his post POSH – Plain Old Semantic HTML. Here are just a couple, but head over to his post for the rest:

  • Use heading elements (h1h6) for headings, and make sure they create a logical outline of the document.
  • For images, make proper use of The alt and title attributes.
  • Use HTML list elements (ul, ol, dl) to mark up lists.
  • Use the em and strong elements for emphasis, not to make text bold or italic (i.e. do not mindlessly replace i and b with em and strong).

[Via 456 Berea Street: POSH - Plain Old Semantic HTML.]

Clip to Evernote

Be the first to comment ⇒

Tell us what you think.
Note: there may be a delay before your comment appears. I now approve all comments from new visitors, in an attempt to keep spam at bay.

Add your Comment

Older Post:

Newer Post: