Prev | Current Page 117 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"


Styling text the old-fashioned way (or, why we
hate font tags)
Styling text online used to be all about font tags. When Netscape introduced the font element
??”complete with size and color attributes??”web designers wept tears of joy. When
Microsoft announced it would go further, adding a face attribute (enabling you to specify
the font family), web designers were giddy with anticipation. But things didn??™t go according
to plan. Page sizes bloated as designers created pages filled with fonts of myriad sizes
and colors. Web users looked on aghast, wondering whether giant, orange body copy was
really the way to go, and whether it was worth waiting twice as long for such abominations
to download.
More important, it became apparent that font tags caused problems, including the following:
Inconsistent display across browsers and platforms
The requirement for font tags to be applied to individual elements
Difficulty ensuring fonts were consistent site-wide, because of having to style individual
elements
HTML geared toward presentation rather than logical structure
Large HTML documents due to all the extra elements
In addition, working with font tags is a time-consuming, boring process, and yet some
(although, thankfully, increasingly few) web designers remain blissfully ignorant of such
problems. In my opinion, if font tags weren??™t HTML elements, I??™d suggest they be taken
out back and shot. Today, there is no reason whatsoever to stick with them.


Pages:
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129