Character highlighting

Status: Extra

These elements allow sections of text to be formatted in a particular way, to provide emphasis, etc. The tags do NOT cause a paragraph break, and may be used on sections of text within paragraphs.

Where not supported by implementations, like all tags, these tags should be ignored but the content rendered.

All these tags have related closing tags, as in

		This is <EM>emphasized</EM> text.

Some of these styles are more explicit than others about how they should be physically represented. The logical styles should be used wherever possible, unless for example it is necessary to refer to the formatting in the text. (Eg, "The italic parts are mandatory".)

Note:

Browsers unable to display a specified style may render it in some alternative, or the default, style, with some loss of quality for the reader. Some implementations may ignore these tags altogether, so information providers should attempt not to rely on them as essential to the information content.

These element names are derived from TeXInfo macro names.

Physical styles

TT
Fixed-width typewriter font.
B
Boldface, where available, otherwise alternative mapping allowed.
I
Italic font (or slanted if italic unavailable).
U
Underline.

Logical styles

EM
Emphasis, typically italic.
STRONG
Stronger emphasis, typically bold.
CODE
Example of code. typically monospaced font. (Do not confuse with PRE )
SAMP
A sequence of literal characters.
KBD
in an instruction manual, Text typed by a user.
VAR
A variable name.
DFN
The defining instance of a term. Typically bold or bold italic.
CITE
A citation. Typically italic.

Examples of use

	This text contains an <em>emphasized</em> word.
	<strong>Don't assume</strong> that it will be italic!
	It was made using the <CODE>EM</CODE> element. A citation is
	typically italic and has no formal necessary structure:
	<cite>Moby Dick</cite> is a book title.