otuatail Posted September 15, 2009 Share Posted September 15, 2009 Hi I get an error here which should be valid. http://validator.w3.org <td width="100px">Revolt</td> Attribute "WIDTH" is not a valid attribute. Did you mean "width"? This can't be right can it. Not used capitals WIDTH Desmond. Link to comment https://forums.phpfreaks.com/topic/174311-solved-width-is-not-a-valid-attribute/ Share on other sites More sharing options...
sticks464 Posted September 15, 2009 Share Posted September 15, 2009 If you are using an html doctype then it is valid since html is not case sensitive. However if your usin an xhtml doctype then it is invalid since xhtml is case sensitive. Link to comment https://forums.phpfreaks.com/topic/174311-solved-width-is-not-a-valid-attribute/#findComment-918869 Share on other sites More sharing options...
otuatail Posted September 15, 2009 Author Share Posted September 15, 2009 it probably is case sencitive but I am using lower case which is correct. My doc type is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Link to comment https://forums.phpfreaks.com/topic/174311-solved-width-is-not-a-valid-attribute/#findComment-918874 Share on other sites More sharing options...
saltedm8 Posted September 15, 2009 Share Posted September 15, 2009 width inside the html or xhtml in a strict doctype is not valid ( does not matter if its html or xhtml ) unless its referring to an image or some other input media you need to do one of 2 things, either you can replace the width"100px" with style="width:100px;" or you can reference it in the css Link to comment https://forums.phpfreaks.com/topic/174311-solved-width-is-not-a-valid-attribute/#findComment-918973 Share on other sites More sharing options...
otuatail Posted September 15, 2009 Author Share Posted September 15, 2009 Ok Thanks that makes sence. Desmond. Link to comment https://forums.phpfreaks.com/topic/174311-solved-width-is-not-a-valid-attribute/#findComment-919044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.