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: and A lot of text here. 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, , are actually optional within HTML documents. Elements restricted to the head element This is a searchable index. Enter search keywords: 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) 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. Attribute: width . . . 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 Required attributes for anchors: one of name or href. Optional attributes: rel, rev, urn, title, methods. The structure of a Universal Resource Location (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: