Printed books traditionally have margins that frame the text and make it more readable. This is something that we intuitively expect in printed matter. However, with web pages we have a different situation. Many web pages do not have margins, because until the advent of HTML 4.0, there was no easy way to provide margins in web pages.Two Traditional Ways to Create MarginsEven though earlier versions of HTML did not allow margins, web designers developed ways to create margins, ways that did not depend on special HTML/XHTML tags.
Margins via Cascading Style SheetsHTML 4.0 provides a way for web pages to be formatted without the use of tables and transparent gifs. The CSS section gives an introduction to style sheets.
|