Inline Elements - Phrases
HTML 4.0 defines a rich set of phrase elements for clarifying and marking up information in a paragraph or content block. <B>old and <I>talic are
two of the most common phrase elements on the web. However, since both of those elements signify style they are being phased out. Instead,
you should use phrase elements that add meaning to the contents. For example, by explicitly marking up words that should be emphasized, you can
help make your page more accessible and usable by speech browsers.
Many times you are going to want to markup your document with richer style purely for presentation. Later on this tour we
will introduce and discuss two generic elements, <DIV> and <SPAN> that are used to group content without implying any semantics or meaning. These are
the recommended ways for introducing arbitrary style into your document.
The HTML 4.0 specification defines specific uses for the phrase elements:
- EM:
- Indicates emphasis. (Sample)
- STRONG:
- Indicates stronger emphasis. (Sample)
- CITE:
- Contains a citation or a reference to other sources. (Sample)
- DFN:
- Indicates that this is the defining instance of the enclosed
term. (Sample)
- CODE:
- Designates a fragment of computer code. (
Sample)
- SAMP:
- Designates sample output from programs, scripts, etc. (Sample)
- KBD:
- Indicates text to be entered by the user. (Sample)
- VAR:
- Indicates an instance of a variable or program argument. (Sample)
- ACRONYM:
- Indicates an acronym (e.g., WAC, radar, etc.). (Sample)
Revision Marks...
|