Using Font Styles: Font, Font Size , Font Weight, Font StyleHere are some of the properties you can use with fonts:
Here's an example using some of these style attributes to display italic, bold, and underlined text: (Listing 21-05.html on the web site)<HTML> <HEAD> <TITLE> Text Styles </TITLE> <STYLE> P {font-size:12pt; font-style:italic; font-family: Arial; text-align:center} </STYLE> </HEAD> <BODY> <H1> Text Styles </H1> <P> Here is some <SPAN STYLE="font-weight: bold">bold</SPAN> and <SPAN STYLE="text-decoration: underline"> underlined</SPAN> text. </P> </BODY> </HTML> |