• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Formatting Text > The <font> Tag

10.5. The <font> Tag

The <font> tag is an inline style tag used to specify the size, color, and font face for the enclosed text using the size, color, and face attributes, respectively. It was created as an extension to HTML to give designers more control over the display of text. The dark side of the <font> tag is that it introduces very specific display information into the HTML markup. As noted several times in this book, in an ideal world, style would be kept separate from content. In HTML 4.01, the <font> tag and all its attributes have been deprecated in favor of the superior formatting capabilities of style sheets. Despite this, it continues to be quite popular (even the best authoring tools rely on it heavily), so it isn't likely to go away any time soon. That said, let's look at how the font tag is used.

A single <font> tag may contain all of these attributes as shown:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint