124 Chapter 7 – Formatting Text
Layout Techniques with HTML
Web Design in a Nutshell, eMatter Edition
favorite cheat for controlling alignment in web pages. The downside is that all the
text will be displayed in Courier.
Note that<pre>is a block element, meaning that it will always be preceded and
followed by a line break (some browsers will also add extra space above and
below the block). For this reason, it is not possible to set text within a paragraph
Figure 7-12: Nested ordered list
Figure 7-13: Preformatted text
<OL TYPE=A>
<LI>Inline Type Styles
<LI>The FONT Tag
<LI>Lists
<OL TYPE=1>
<LI>Unordered Lists
<LI>Ordered Lists
<OL TYPE=a>
<LI>Changing the Numbering Scheme
<LI>Setting the First Number
</OL>
<LI>Definition Lists
<LI>Nesting Lists
</OL>
<LI>Layout Techniques with HTML
</OL>
<PRE>
Calories Carb(g) Fat(g)
French Fries 285 38 14
Fried Onion Rings 550 26 47
Fried Chicken 402 17 24
</PRE>