22.06.2015 Views

o_19octlt3v29m1ul81r9513q81i4ra.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Key Points 123<br />

Key Points<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

Font families are sets of fonts, listed in order of preference. Because not all Web<br />

visitors have the same fonts installed on their computers, you should use the fontfamily<br />

attribute to help ensure that your Web site appears the way you want.<br />

Font size is typically measured in pixels (px) for onscreen display. To specify size, use<br />

the font-size attribute.<br />

You can define font color by using any color description method, including RGB,<br />

hexadecimal, and color names. Use the color attribute to define font color.<br />

To set the background color for text, use the background-color attribute. To set the<br />

background color for a paragraph, insert a style= attribute in the tag.<br />

You can still use the tag to apply bold formatting and the tag to apply<br />

italic formatting. In style sheets, you can also apply bold formatting by using<br />

the font-weight: bold attribute, and italic formatting by using the font-style: italic<br />

attribute.<br />

For individual instances of strikethrough formatting, you can use the tag; for<br />

individual instances of underlining, use the tag. To apply this formatting by<br />

using styles, use font-decoration: line-through and font-decoration: underline.<br />

Inline spans create tags that serve as containers for attributes. Use the tag<br />

to surround any amount of text to be marked in some way.<br />

Use the word-spacing attribute to define an amount of space between words. Use<br />

letter-spacing to define space between letters. The default amount is 0; specify a<br />

positive number to increase spacing or a negative number to decrease it.

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

Saved successfully!

Ooh no, something went wrong!