Here is emphasized text (<em>):
It is very important that we do XYZ.
Here is strong text (<strong>):
Nearly forty people live there.
Here is an example of a citation (<cite>):
As Jim Barksdale says, "It's a marathon, not a sprint."
Here is an abbreviation (<abbr>):
I work for Acme Tools, Inc.
Here is an acronym (<acronym>):
The United States is a member of
NATO.
A definition can be enclosed in the <dfn> tag:
Raptor features a totally new layout engine.
Fragments of computer code are enclosed in the <code> tag:
Use this code to achieve the desired effect:
if (1 > 2) {
document.write(navigator.userAgent);
}
else {
document.write('The sky has fallen.');
}
Here is some sample output from computer programs and scripts (<samp>):
The sky has fallen
When indicating text that the user should enter, authors use the
<kbd> tag:
cd \mozilla
nmake -f nglayout.mak pull_all clobber_nglayout all
An instance of a variable or program argument can be designated with
the <var> tag:
MOZ_DEBUG
HTML example code may be placed inside the <xmp> tag:
This is a paragraph
This is a paragraph