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 ...
Get HTML for the World Wide Web, Fifth Edition, with XHTML and CSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.