A Complete Guide to Web Design

(やまだぃちぅ) #1
112 Chapter 7 – Formatting Text

Working with HTML Text


Web Design in a Nutshell, eMatter Edition

<ol> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<ol>...</ol>

Defines the beginning and end of an ordered list, which consists of list items<li>.
Attributes
compact
Displays the list as small as possible (not many browsers do anything with
this attribute).
start=number
Starts the numbering of the list atn, instead of 1.
type=1|A|a|I|i
Defines the numbering system for the list as follows:

Thetypeattribute has been deprecated by the HTML 4.0 Specification in
favor of style sheet controls for list item display.

<ul> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<ul>...</ul>

Defines the beginning and end of an ordered list, which consists of list items<li>.
Attributes
compact
Displays the list block as small as possible. Not many browsers support this
attribute.
type=disc|circle|square
Defines the shape of the bullets used for each list item.

Working with HTML Text


Formatting web page text is unlike formatting text for print. In print, you have the
luxury of knowing that text will stay where you put it. Web text, on the other
hand, is more fluid. Many aspects of presentation are determined when the docu-
ment flows into each user’s browser window.
A good place to begin formatting a web document is to establish the general struc-
ture of the document by adding HTML tags that create paragraphs and heading
levels in the raw text.

Type Value Generated Style Sample Sequence
1 Arabic numerals (default) 1, 2, 3, 4...
A Uppercase letters A, B, C, D...
a Lowercase letters a, b, c, d...
I Uppercase Roman numerals I, II, III, IV...
i Lowercase Roman numerals i, ii, iii, iv...
Free download pdf