The HTML 3.2 and HTML 4.0 specifications allow only integer values (representing a number of pixels) for the WIDTH attribute of the TD element. However, the HTML 4.0 DTD allows percentage (and other non-integer) values, so an HTML validator will not complain about <TD WIDTH="xx%">.It should be noted that Netscape and Microsoft's browsers interpret percentage values for <TD WIDTH=...> differently. However, their interpretations (and those of other table-aware browsers) happen to match when combined with <TABLE WIDTH="100%">. In such situations, percentage values can be used relatively safely, even though they are prohibited by the public specifications
HTML
Topic: Tables
Can I use percentage values for <TD WIDTH=...>?
Browse random answers:
How to create tables in an HTML document?
Can I use percentage values for <TD WIDTH=...>?
Explain the <th> tag?
Can I nest tables within tables?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
How do I align a table to the right (or left)?
How can I use tables to structure forms?
How do I center a table?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
What are the differences between cell spacing and cell padding?
How do I align a table to the right (or left)?
How can you provide heading to a table?
How to have a table cell that spans two columns in HTML?
What is the relationship between the border and rule attributes?