Using Cascading Style Sheets (CSS) to Specify Web Page Fonts
|
The FONT
tag is used to display your text in a specific style. Using fonts within
a table requires you to add the FONT tag to each individual cell. This technique
will cause your page to be larger than necessary.
By using Cascading Style Sheets, you can not only save yourself a lot of
time, but keep your page size down.
Place the following code between the <HEAD> and </HEAD> tags
of your HTML page.
<STYLE
TYPE="text/css">
<!--
TD{font-family: Verdana; font-size: 12pt;}
-->
</STYLE> |
By using this style sheet, all the
text displayed in your table will be displayed in your specified font and
size.
This is just one small example of how you can use CSS (Cascading Style Sheets)
Style Tags within your web page. For additional information on CSS, visit
the CSS Tutorial
section.
More Web Design
Tips |