15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Structure of an HTML Document 467<br />

Emphasizing text<br />

To make text stand out, you can emphasize it as bold, italics, or underline by<br />

using the following tags:<br />

✦ and to display text in bold<br />

✦ and to display text in italic<br />

✦ and to display text as underline<br />

Just place these tags around the text you want to emphasize, such as<br />

Book V<br />

Chapter 1<br />

HyperText Markup<br />

Language<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

This text appears bold.<br />

This text appears italicized.<br />

This text appears underlined.<br />

<br />

<br />

Adding color<br />

Color can further emphasize the appearance of text. To color text, surround<br />

it with the and tags where #xxyyzz<br />

represents a color code, as shown in Table 1-1.<br />

Colors are defined in shades of red, blue, and green, represented as hexadecimal<br />

values. The xx portion defines the amount of red, the yy defines the<br />

amount of blue, and the zz defines the amount of green. The absence of a<br />

color is 00 whereas the maximum amount of a color is FF. By varying the<br />

shades of red, blue, and green as hexadecimal values, you can define your<br />

own colors.<br />

Table 1-1<br />

HTML Color Codes<br />

Color<br />

Color Code<br />

Red<br />

#FF0000<br />

Turquoise<br />

#00FFFF<br />

Light blue<br />

#0000FF<br />

Dark blue #0000A0<br />

Light purple<br />

#FF0080<br />

Dark purple #800080<br />

(continued)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!