– Mark E. Smith

Whenever you choose an HTML element to mark up your content, your choice will fall into one of these categories:

  1. Element chosen is valid, semantically correct, and structural.
  2. Element chosen is indisputably wrong according to the validator (e.g., div inside p)
  3. Element chosen is indisputably wrong according to a plain, uncontested reading of the spec, even if the validator passes it (e.g., using div instead of p)
  4. Element chosen is presentational when a structural element could be used (e.g., tt for samp)
  5. Element chosen is structural but could be replaced with a structural element with better semantics (e.g., p should really be address)
  6. Presentational element is chosen because the content does not suit itself to a structural alternative (e.g., b and i in marking up historical documents)
  7. Element chosen is semantic but relies on sometimes-disputed interpretation of the spec (e.g., definition lists used to mark up dialogue)
  8. Element chosen is semantic but pushes the very limits of its definition in the spec (e.g., individual Weblog entries marked up as li)
  9. Element chosen is generic (i.e., span or div) because no other element conceivably fits

Please make your selection now.

The foregoing posting appeared on Joe Clark’s personal Weblog on 2005.05.01 12:53. This presentation was designed for printing and omits components that make sense only onscreen. (If you are seeing this on a screen, then the page stylesheet was not loaded or not loaded properly.) The permanent link is:

(Values you enter are stored and may be published)



This personal Weblog is unlikely to be updated again until my next book comes out. (See Best postings)

Topics of interest here

Archives by category

Archives by date

Just add /year/month/day/ to the end of site’s URL, blog.fawny.org. You can add just /year/month/, or just /year/, if you wish. Years are four-digit, month and day two-digit (with padding zero below 10). For example:

Copyright © 2004–2023

You enjoy fawny.blog

Transgenderism is to be opposed categorically