Key Points
Font families are sets of fonts, listed in order of preference. Because not all Web visitors have the same fonts installed on their computers, you should use the
font-family
argument to help ensure that your Web site appears the way you want.Font size is typically measured in pixels (px) for onscreen display. To specify size, use the
font-size
argument.Font color can be defined by using any color description method, including RGB, hexadecimal, and color names. Use the
color
argument to define font color.Background color can be set for text by using the
background-color
argument. To set the background color for a paragraph, insert astyle=
argument in the <p> tag.You can still use the <b> tag to apply bold formatting and the <i> tag ...
Get HTML and XHTML Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.