|
Content-based tags |
|
The simplest examples of structure in a text are content-based tags.
In Text→content
tags you see a list of them. Content based tags
indicate that a given portion of text is of a particular kind or that
it serves a specific purpose. For instance, important text should be
marked using the strong tag.
Its default rendering uses a bold type face, like in this
strong text. However, strong text might be rendered
in a different way according to the document style. For instance,
strong text may be rendered in a different color on transparencies for
presentations. Here follows a short list of the most common
content-based tags and their purpose:
Tag |
Example |
Purpose |
strong |
this is important |
Indicate an important region of text |
em |
the real thing |
Emphasize a region of text |
dfn |
A gnu is a horny beast |
Definition of some concept |
samp |
the ae ligature æ |
A sequence of literal characters |
name |
the Linux system |
The name of a particular thing |
person |
I am Joris |
The name of a person |
cite* |
Melville's Moby Dick |
A bibliographic citation |
abbr |
I work at the C.N.R.S. |
An abbreviation |
acronym |
the HTML format |
An acronym |
verbatim |
the program said hello |
Verbatim text like computer program output |
kbd |
Please type return |
Text which should be entered on a keyboard |
code* |
cout << 1+1; yields 2 |
Code of a computer program |
var |
cp src-file
dest-file |
Variables in a computer program |
|
|
Table 1. Some of the most common content-based
tags.
|
© 1998–2002 Joris van der Hoeven
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled
"GNU Free Documentation License".