The Digital Research Initiative
The University of North Carolina at Chapel Hill

  [layout] [html] [graphics] [navigation]
web.design101.html
  Leave out some of the unnecessary attributes
Designing in HTML has some notable differences from image design. When you're designing in HTML, you want to leave out as many attributes as possible, especially with tables. (This is the opposite situation from designing images, when you should always define the width and height.) If you don't have to specify something in HTML, don't. The temptation to use tables to achieve precise, pixel-level control can result in overly specific HTML.

For example, if you want a table data cell to be a certain height or width, simply put in the content and see how it turns out. Omitting cell height and width makes the browser do the work for you.

If you get too specific in your attribute commands, you run the risk of making errors. A particular browser may not understand something, or your commands may conflict with another instruction on a certain version of a certain browser. Also, leaving out specific attribute commands means there's less code to transmit, so your pages will download faster.

<< back

 
  [layout] [html] [graphics] [navigation]

sharpness depends on the edge of a blade narrowing to nothingness   This site was created by Adam Fuller especially for students of the UNC School of Journalism's JOMC 050 Class and anyone else who may be interested. For more information, please contact daikat@email.unc.edu