Validation (XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'table'

P

perspolis

Hi all
I created a Web Project but it dosen't support some properties of HTML tags
and it gives me following error:
Attribute 'height' is not a valid attribute of element 'table'
I don't know why?/
thanks in advance
 
M

Mark Rae

Hi all
I created a Web Project but it dosen't support some properties of HTML
tags and it gives me following error:
Attribute 'height' is not a valid attribute of element 'table'
I don't know why?/

By default (I think) VS.NET 2005 is set to XHTML Transitional mode for
validation, and what it is telling you is absolutely correct: in XHTML, the
<table> attribute doesn't have a height attribute.

You have two choices:

1) Re-write your markup to XHTML standards so that all modern browsers can
display it more or less correctly: http://validator.w3.org

2) Set your validation back to HTML4.01 and revert to the old cross-browser
incompatibility problems (not recommended)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top