Jump to content

W3C validation throws error


robin69

Recommended Posts

Hi All,I have validating my html page. doc type i used is<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">and i get error something likethere is no attribute "NAME". <FORM NAME="calculate">You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. I dont know may be its just incorrect doc type i am using. please help.

Link to comment
Share on other sites

You're missing the DTD URI. It should be this:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

why its changing my font size to smaller and my link hovering style doesnt work at all is that the correct DTD i should be using. so do u think that i have incorrect stylesheet,please help me thanks in forward.cheersRobin
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...