brown2005 Posted March 9, 2008 Share Posted March 9, 2008 <script language="JavaScript" type="text/javascript" src=""></script> this is not rendered an error in transitional.. but when i change to strict i get Line 11, Column 18: there is no attribute "language". <script language="JavaScript" type="text/javascript" src=""></script>✉ 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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. i get that... any ideas how i change to be correct? Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 9, 2008 Share Posted March 9, 2008 <script type="text/javascript" src=""></script> Try that - the error you got was fairly explicit. Quote Link to comment Share on other sites More sharing options...
haku Posted March 10, 2008 Share Posted March 10, 2008 The 'language' attribute is not allowed in a strict doctype. Quote Link to comment Share on other sites More sharing options...
brown2005 Posted March 10, 2008 Author Share Posted March 10, 2008 hi i removed the language and i still got errors.. but then realised i has <SCRIPT></SCRIPT> in uppercase so changed to lower and all is fine. Thanks very much for everyones help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.