Two levels of emphasis are available in
XHTML, em
and
strong
. em
is for a
normal level of emphasis and strong
indicates stronger emphasis.
Typically, em
is rendered in italic
and strong
is rendered in bold. This is
not always the case, however, and should not be relied upon.
According to best practices, webpages only hold structural and
semantical information and stylesheets are later applied to
them. Think of semantics, not formatting, when using these
tags.
em
and
strong
Usage:
Content that should be rendered in a fixed pitch
(typewriter) typeface is tagged with tt
(for “teletype”).
tt
Usage:
Links are also inline elements.
A link points to the URL of another
document on the web. The link is indicated with
a
, and the href
attribute contains the URL of the target
document. The content of the element becomes the link, and
is normally indicated to the user in some way,
typically by a different color or underlining.
<a href="...">
Usage:
These links will take the user to the top of the chosen document.
Linking to a point within another document, or within
the same document, requires that the document author include
anchors. Anchors are indicated with
a
and the id
attribute
instead of href
.
<a id="...">
Usage:
To link to a named part of a document, write a normal
link to that document, but include the ID
of the anchor after a #
symbol.
Assume that the para1
example
resides in a document called
foo.html
.
If you are linking to a named anchor within the same
document then you can omit the document's URL, and just
include the name of the anchor (with the preceding
#
).
Assume that the para1
example
resides in this document:
This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/
For questions about FreeBSD, read the
documentation before
contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.