home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Book HomeWeb Design in a NutshellSearch this book

8.5. Tips on Good HTML Style

This section offers some guidelines for writing "good" HTML -- code that will be supported by a wide variety of browsers, handled easily by applications expecting correct HTML, and extensible to emerging technologies built on the current HTML specification.


Line breaks and extra spaces can create unwanted white space in certain contexts. For instance, if you have a string of graphics that should abut seamlessly, adding a line break or a space between the <img> tags will introduce extra space between the graphics (even though, technically, it shouldn't). In addition, extra spaces within and between table cells (<td> tags) can add unwanted spaces in your table. This is discussed further in Chapter 13, "Tables".

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.