- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Sun, 06 Mar 2005 21:15:17 +1100
- To: Zainul Aabdeen <pixces@yahoo.com>
- CC: www-validator@w3.org
Zainul Aabdeen wrote: > kindly give suggestions for this error > > This page is not Valid HTML 4.01 Transitional! > Line 122, column 40: there is no attribute > "BACKGROUND" > <td height="8" background="images/BAR-Left.gif"></td> That means that the background attribute cannot be used on table cells. Also, because it is a presentational attribute, you can use CSS to specify the background instead. eg. td { background-image: url(images/BAR-Left.gif); } However, with that selector, the background would then apply to all table cells. You could use an ID selector instead, but a better suggestion would be to stop using tables for layout. Tables are meant for marking up tabular data, not for page layout in a visual medium. You should use CSS to specify all layout, and avoid the use of any presentational attributes in HTML that specify colours, background-images, sizes, margins, borders and padding. All of those and more can be set using CSS. Please consult some tutorials on CSS and the use of well structured and *semantic* markup in HTML for more information. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox
Received on Sunday, 6 March 2005 10:15:23 UTC