HTML and CSS Reference
In-Depth Information
In HTML 4, the <cite> element could be used to mark up the
name of a speaker:
As <cite>Harry S. Truman</cite> said,<Q lang=”en-us”>
¬ The buck stops here.</Q>
HTML5 disallows this: “A person's name is not the title of a work—
even if people call that person a piece of work—and the element
must therefore not be used to mark up people's names.”
This is bonkers. It makes existing content that conforms to the
rules of HTML 4 nonconforming to the rules of HTML5, although
it will never be flagged as invalid by a validator, as a machine
has no way of knowing that “Harry S. Truman” is a name rather
than the title of a biography called “Harry S. Truman.”
In his article, “Incite a Riot,” <cite>Jeremy Keith</cite> wrote,
“J of i in m e i in a c a m p a i g in of f c i v i l d i s of b e d i e in c e a g a i in s t t h e u in in e c -
essarily restrictive, backwards-incompatible change to the
<cite> element ( )."
I agree. Use <cite> for names if you want to.
In HTML 4, <dl> was a definition list containing a term and one
or more definitions for that term. This was nice and straightfor-
ward, but then the spec got itself all muddy and confused, as it
also mentioned the potential use of <dl> to mark up dialogues,
complete with code examples to that effect. It was regularly
misused to mark up any name and value pairs regardless of
whether one defined the other.
HTML5 widens the element to be “an association list consisting
of zero or more name-value groups . . . Name-value groups may
be terms and definitions, metadata topics and values, or any
other groups of name-value data.” Here's an example listing the
topics in Remy's collection, using <dt> and <dd> to group title
and author(s).
<dt>History of French plastic sandals</dt>
<dd>Phillipe Philloppe</dd>
<dt>J-Lo's plastic surgery: a profile</dt>
<dd>Hugh Jarce</dd>
<dt>The Orpheus and Eurydice myth</dt>
Search WWH ::

Custom Search