Forum Moderators: open
<td background="images/navbarboth.jpg">
it says
the tag td doesnt have an attribute :"background" in currently active version HTML 4.0
What does this mean, does that mean that i can not add the picture to the background of the table to make it compliant?
Thanks you
I think the BACKGROUND attribute on other elements, such as the <td> tag, was initially IE only. Although it was later adopted by other browsers, it never made the W3C specification.
As keyplyr says, you need to use CSS.
Start by marking up your content as headings, paragraphs, lists, tables, forms (and images). Those are the main building blocks.
Write a default style for each of those types of content.
Next add class names to any blocks of content that are going to be displayed differently to that default: the footer paragraph and the navigation list for example, and then define the styles for those classes too.
You've now got a template for the whole site to use.