HTML Quick Reference
===================
HTML is composed of a set of elements that define a document and guide its
display. An HTML element may include a name, some attributes and some text
or hypertext, and will appear in an HTML document as
text text , or just
For example:
My Useful Document
and
text
An HTML document is composed of a single element:
. . .
that is, in turn, composed of head and body elements:
. . .
and
. . .
To allow older HTML documents to remain readable, , , and
are actually optional within HTML documents.
Elements usually placed in the head element
Specify index file
. . .
Specify document title
Set a variable value. Attribute: variable name
Specify relationships to other documents. Attributes: same as Anchor
below
Specify the name of the file in which the current document is stored.
This is useful when link references within the document do not include
full pathnames (i.e., are partially qualified).
Elements usually placed in the body element
The following sections describe elements that can be used in the body of the
document.
Text Elements
The end of a paragraph that will be formatted before it is displayed on
the screen.
. . .
Identifies text that has already been formatted (preformatted) by some
other system and must be displayed as is. Preformatted text may include
embedded tags, but not all tag types are permitted.
. . .
Example computer listing; embedded tags will be ignored, but embedded
tabs will work
. . .
Include a section of text quoted from some other source.
Hyperlinks or Anchors
. . .
Define a target location in a document
. . .
Link to a location in the same file
. . .
Link to another file
. . .
Link to a target location in another file
. . .
Send a search string to a server. Different servers might interpret the
search string differently. In the case of word oriented search engines,
multiple search words might be specified by separating individual words
with a plus sign (+).
Required attributes for anchors: one of name or href.
Optional attributes: rel, rev, urn, title, methods. Note that not all
methods are valid attributes to an anchor.
The structure of a Universal Resource Locator (URL) is similar to:
resource_type://host.domain:port/pathname
where the possible resource types include: file, http, news, gopher, telnet,
and wais, and the colon followed by the TCP port number is optional. A more
complete description is presented in
http://info.cern.ch/hypertext/WWW/Addressing/Addressing.html
Headers
. . .
Most prominent header
. . .
. . .
. . .
. . .
. . .
Least prominent header
Logical Styles
. . .
Emphasis
. . .
Stronger emphasis
. . .
Display an HTML directive
. . .
Include sample output
. . .
Display a keyboard key
. . .
Define a variable
. . .
Display a definition
. . .
Display a citation
Physical Styles
. . .
Bold font
. . .
Italics
. . .
Underline
. . .
Typewriter font
Definition list/glossary:
First term to be defined
Definition of first term
Next term to be defined
Next definition
The
attribute compact can be used to generate a definition list
requiring less space.
Present an unordered list: