robin69 Posted January 5, 2006 Share Posted January 5, 2006 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 More sharing options...
F-Man Posted January 5, 2006 Share Posted January 5, 2006 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"> Link to comment Share on other sites More sharing options...
robin69 Posted January 6, 2006 Author Share Posted January 6, 2006 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"><{POST_SNAPBACK}> 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 More sharing options...
F-Man Posted January 6, 2006 Share Posted January 6, 2006 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,<{POST_SNAPBACK}> Copy and paste your stylesheet here so we can take a look at it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now