Share this Page URL

Chapter 3. From Buck-Naked to Beautiful:... > Textras: Fancier Text Formatting - Pg. 40

From Buck-Naked to Beautiful: Dressing Up Your Page 40 The Least You Need to Know · The basic styles. Use the <B> tag for bold text, <I> for italics, <U> for underlining, and <TT> for monospace. · Headings, galore. The heading tags run from <H1> (the largest) through <H6> (the smallest). Remember, too, that text between heading tags always appears in a separate paragraph. · Modifying tag behavior with attributes. Many tags can take one or more attributes that change the way the browser handles the tag. When specifying attributes, always surround the values with quotation marks. · Alignment options. To align your text, the <P> tag and the heading tags accept the ALIGN attribute, which can take any of three values: LEFT, CENTER, and RIGHT. · Other useful formatting tags. Use the <PRE> tag to force the browser to display white space; use <BR> to insert a line break; and use <HR> to insert a horizontal line. · The hard-working <FONT> tag. To format text, use the <FONT> tag's various attributes, including SIZE (to change the size of the text), FACE (to change the typeface), and COLOR (to change the color). · Doing your page's colors. You'll most often specify a color using the code # rrggbb, where rr is the red value, gg is the green value, and bb is the blue value. Each value is a hexadecimal number that runs from 00 to FF.