HTML and CSS Reference
In-Depth Information
<code> This tag indicates that the text inside is a code sample and displays
it in a fixed-width font such as Courier. For example:
< p >< code >#include “trans.h”< /code >< /p >
<samp> This tag indicates sample text and is generally presented in a fixed-
width font, like <code> . An example of its usage follows:
<p> The URL for that page is <samp>
< /samp >< /p >
<kbd> This tag indicates text that's intended to be typed by a user. It's also
presented in a fixed-width font. Consider the following:
<p> Type the following command: <kbd> find . -name “prune”
-print< /kbd >< /p >
<var> This tag indicates the name of a variable, or some entity to be
replaced with an actual value. Often it's displayed as italic or under-
line, and is used as follows:
<p><code> chown </code> <var> your_name for the_file
< /var >< /p >
<dfn> This tag indicates a definition. <dfn> is used to highlight a word
(usually in italics) that will be defined or has just been defined, as in
the following example:
<p> Styles that are named after how they are actually
used are called
< dfn >logical styles< /dfn >< /p >
This tag indicates a short quote or citation, as in the following:
<p> Eggplant has been known to cause nausea in some
people <cite> (Lemay, 1994) </cite></p>
HTML 4.01 introduced two additional logical style tags that are most useful for audio
browsers. A graphical browser, such as Firefox or Internet Explorer, won't display them
any differently. When an audio browser reads content included within one of these tags,
however, each letter is spoken individually. For example, fox is pronounced F-O-X rather
than fox .
These tags also use opening and closing sides and affect the text within. The following
are new tags:
<abbr> This tag indicates the abbreviation of a word, as in the following:
<p> Use the standard two-letter state abbreviation
(such as <abbr> CA </abbr> for California) </p>
Search WWH ::

Custom Search