Next Previous Contents HTML 4.0 compliance checked by

9.2.1 Phrase Elements Like EM

These are semantic tags, and the browser is supposed to put font attributes on the tagged text to suggest the semantics. All are inline, although some are more naturally used in a block context. Here's a medley of tagged sentences.

EM for emphasis. STRONG for stronger emphasis. Dfn (DFN) for a word that is being defined here. CODE for an inline fragment of computer code. SAMP for sample output of a program. KBD for text to be entered by the user. Var (VAR) for a variable name. CITE for a literature citation. ABBR for an abbreviation. ACRONYM for an acronym.

Here's the same thing in an unordered list:

In the latter acronym (for ``three letter acronym'') the `s' is outside of the acronym and the acronym itself is lower case (probably should end up in small caps); see if your browser makes a hash of it. Now, since the idea of acronyms is to shorten, why did this particular tag have to be seven letters long?

If you're really being correct, your ABBR or ACRONYM tag should have a title attribute with the full text in it. The above tags have it; see if your browser provides a way to see it.

Note: the tags are written above in upper case for stylistic purposes, but tagnames are not case sensitive.

Next Previous Contents