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

Chapter 9. Formatting Text in XHTML > Adding Color, Size, and Typefaces to Text

Adding Color, Size, and Typefaces to Text

One of the most problematic elements in HTML proved to be the font element. There are a few reasons as to why this is such a troublesome element, but two of the most compelling are

  • For a specific font to display on a user's browser, that font must exist on his or her machine. This can severely limit choices for font faces, and also complicates HTML documents because of long strings of alternate font names included in the font tag attributes

  • Every time you change the color, size, or font face, you must open and close the font tag. This also occurs within paragraphs and table cells. This causes an incredible amount of clutter within the document.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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