kiko_friendly
New Member
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
The code above that I put in red is similar to the code that I need to use for my site.
I am currently validating my HTML, which is complicated for me because I only taught myself HTML so as it would look right, and not to be valid...there was no other way (unless I paid).
Anyhow, I've managed to get my page to very few errrors, but I have no idea as to what the code above is. All I know is that I want to be able to use the following without it complaining :
<SCRIPT LANGUAGE="JavaScript">
The validator then said this :
Error Line 146 column 17: there is no attribute "LANGUAGE".
<SCRIPT LANGUAGE="JavaScript">
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.
and
Error Line 146 column 29: element "SCRIPT" undefined.
<SCRIPT LANGUAGE="JavaScript">
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
That just confuses me.
Any help, anyone?
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
The code above that I put in red is similar to the code that I need to use for my site.
I am currently validating my HTML, which is complicated for me because I only taught myself HTML so as it would look right, and not to be valid...there was no other way (unless I paid).
Anyhow, I've managed to get my page to very few errrors, but I have no idea as to what the code above is. All I know is that I want to be able to use the following without it complaining :
<SCRIPT LANGUAGE="JavaScript">
The validator then said this :
Error Line 146 column 17: there is no attribute "LANGUAGE".
<SCRIPT LANGUAGE="JavaScript">
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.
and
Error Line 146 column 29: element "SCRIPT" undefined.
<SCRIPT LANGUAGE="JavaScript">
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
That just confuses me.
Any help, anyone?