Setting Up the HTML Code


The HTML code for this lesson contains three paragraphs of text as shown in Listing 7.1. The contents of these paragraphs are wrapped inside <font> elements. The first paragraph has been set to a larger font size. It also has been colored and styled in bold and italic. The results are shown in Figure 7.1.

Listing 7.1. HTML Code Containing Markup for Lesson 7
<p align="center">     <font size="4" color="#990000" face="times, times new     roman">     <b><i>Lorem ipsum dolor sit amet, consectetuer adipiscing     elit...</i></b></font> </p> <p>     <font size="2" face="arial, helvetica">     Ut wisi enim ad minim veniam, quis nostrud exerci...</font> </p> <p>     <font size="2" face="arial, helvetica">     Duis autem vel eum iriure dolor in hendrerit vulputate...     </font> </p> <p>     <font size="2" face="arial, helvetica"><p> nostrud     exerci...     </font> </p> 

Figure 7.1. Screenshot of <font>-styled paragraphs.





Sams Teach Yourself CSS in 10 Minutes
Sams Teach Yourself CSS in 10 Minutes
ISBN: 0672327457
EAN: 2147483647
Year: 2005
Pages: 234
Authors: Russ Weakley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net