Character Formatting Elements

Here are the character formatting elements available in HTML 2.0 and how they are used. There are two categories: Idiomatic (representing a specific publishing element type) and Typographic (representing a specific character style).

Idiomatic Elements
<CITE>...</CITE> Alters the appearance of the enclosed text to set it off as a citation or quote. Such as: Let them eat cake!
<CODE>...</CODE> Used primarily to represent the contents as computer programming code. The contents are displayed using a different font (usually Courier) with non-proportional spacing, such as: function status_msg() {
<EM>...</EM> Used to emphasize the contents within the surrounding text. May be displayed as italic, bold or underlined, depending upon the browser and operating system.
<KBD>...</KBD> Used to represent characters entered by a user from a keyboard. Usually uses Courier or Roman type fonts.
<SAMP>...</SAMP> Used to represent some sample text in a demonstration or instruction type of document.
<STRONG>...</STRONG> Used to provide strong emphasis to the contents within the surrounding text. Often displayed as bold, but may also be italic, or underlined, depending upon the browser and operating system.
<VAR>...</VAR> Used to identify variable text which will be replaced, such as when displaying a sample letterhead and you want to show: Your Company Name Goes Here.

Typographic Elements
<B>...</B> Used to display text in bold face type. More reliable than the <STRONG> element for ensuring bold print, but still not 100%.
<I>...</I> Used to display text in italics. More reliable than the <EM> element for ensuring italic print, but still not 100%.
<TT>...</TT> Used to display text as if printed on a teletype. The exact formatting is left up to the browser.

These are the HTML elements you will use in all levels of Web Publishing. They have been a part of HTML from the beginning, and will likely be to the end.

Home Page | Session 3 Index | Structure Summary | Other Elements