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

Chapter 10. Formatting With Styles

Chapter 10. Formatting With Styles

In the old days, there were special HTML tags for making text bold or italic, bigger or smaller, or even for changing its font or color. As Web pages become larger and more sophisticated, formatting a page by using these individual tags gets more and more cumbersome, as you have to wade through piles of code to edit individual formatting instructions.

The push has been to separate formatting instructions from the actual content of the page in order to make it easier to control, update, and edit the formatting. With this in mind, the W3C decided to gradually remove almost all of the formatting tags from (X)HTML in favor of style sheets. While these formatting tags are still legal in the transitional and frameset flavors of (X)HTML, they are not permitted in documents written in strict (X)HTML. They remain popular, however, so I’ll explain all about them in Chapter Chapter 21, Formatting: The Old Way.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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