PDA

View Full Version : Need help with errors


thedon
10-13-2009, 06:44 AM
Hi there,
Last time I checked my errors I had some and fixed them, Now I have a look and I had 190 errors. I have reduced it down to 82 but cant work out some of them.
Can someone please look at the below and explain how I can fix this.


Line 15, Column 59: document type does not allow element "link" here
<link rel="stylesheet" href="website.css" type="text/css"/>✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=64#errormsg)
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 19, Column 68: document type does not allow element "script" here; assuming missing "body" start-tag …s/AC_RunActiveContent.js" type="text/javascript"></script>✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=66#errormsg)

Line 26, Column 80: document type does not allow element "link" here …" rel="stylesheet" type="text/css" />✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=64#errormsg)
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 28, Column 85: document type does not allow element "link" here …" rel="stylesheet" type="text/css" />✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=64#errormsg)
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 29, Column 83: document type does not allow element "link" here …" rel="stylesheet" type="text/css" />✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=64#errormsg)
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 39, Column 30: document type does not allow element "body" here } catch(err) {}</script><body>✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=64#errormsg)
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 40, Column 28: Attribute "height" exists, but can not be used for this element. <table width="1016" height="1378" border="1" align="center" cellpadding="2" bord✉ (http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.thai-discovery.com%2F;errmsg_id=108#errormsg)
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 (http://validator.w3.org/docs/help.html#faq-flash).

Line 40, Column 89: Attribute "bordercolor" is not a valid attribute …center" cellpadding="2" bordercolor="#000000">Thanks
If you need to look at the source, it is http://www.thai-discovery.com

edbr
10-13-2009, 07:14 AM
perhaps this will be clearer for you


line 15 column 1 - Warning: <link> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 19 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 23 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 24 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 25 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 26 column 1 - Warning: <link> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 28 column 1 - Warning: <link> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 29 column 1 - Warning: <link> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 31 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 35 column 1 - Warning: <script> isn't allowed in <html> elements
line 2 column 1 - Info: <html> previously mentioned
line 183 column 121 - Warning: unescaped & or unknown entity "&hl"
line 183 column 127 - Warning: unescaped & or unknown entity "&fs"
line 183 column 132 - Warning: unescaped & or unknown entity "&rel"
line 183 column 138 - Warning: unescaped & or unknown entity "&color1"
line 183 column 154 - Warning: unescaped & or unknown entity "&color2"
line 183 column 170 - Warning: unescaped & or unknown entity "&border"
line 183 column 181 - Warning: discarding unexpected </param>
line 183 column 232 - Warning: discarding unexpected </param>
line 183 column 287 - Warning: discarding unexpected </param>
line 183 column 343 - Warning: unescaped & or unknown entity "&hl"
line 183 column 349 - Warning: unescaped & or unknown entity "&fs"
line 183 column 354 - Warning: unescaped & or unknown entity "&rel"
line 183 column 360 - Warning: unescaped & or unknown entity "&color1"
line 183 column 376 - Warning: unescaped & or unknown entity "&color2"
line 183 column 392 - Warning: unescaped & or unknown entity "&border"
line 183 column 295 - Warning: <embed> is not approved by W3C
line 739 column 263 - Warning: missing </span> before </p>
line 780 column 10 - Warning: missing </strong> before </p>
line 781 column 5 - Warning: inserting implicit <strong>
line 781 column 5 - Warning: missing </strong> before <p>
line 781 column 8 - Warning: inserting implicit <strong>
line 782 column 5 - Warning: inserting implicit <strong>
line 729 column 6 - Warning: missing </div>
line 783 column 55 - Warning: adjacent hyphens within comment
line 787 column 7 - Warning: adjacent hyphens within comment
line 791 column 5 - Warning: inserting implicit <p>
line 845 column 9 - Warning: adjacent hyphens within comment
line 846 column 9 - Warning: replacing unexpected strong by </strong>
line 846 column 77 - Warning: discarding unexpected </span>
line 849 column 756 - Warning: unescaped & or unknown entity "&currency"
line 849 column 769 - Warning: unescaped & or unknown entity "&length"
line 851 column 9 - Warning: adjacent hyphens within comment
line 854 column 7 - Warning: inserting implicit <p>
line 884 column 17 - Warning: <img> element not empty or not closed
line 40 column 1 - Warning: <table> proprietary attribute "height"
line 40 column 1 - Warning: <table> proprietary attribute "bordercolor"
line 67 column 50 - Warning: <a> escaping malformed URI reference
line 96 column 25 - Warning: <a> escaping malformed URI reference
line 98 column 25 - Warning: <a> escaping malformed URI reference
line 99 column 25 - Warning: <a> escaping malformed URI reference
line 100 column 25 - Warning: <a> escaping malformed URI reference
line 101 column 25 - Warning: <a> escaping malformed URI reference
line 102 column 25 - Warning: <a> escaping malformed URI reference
line 152 column 34 - Warning: <img> escaping malformed URI reference
line 182 column 26 - Warning: <img> escaping malformed URI reference
line 182 column 119 - Warning: <img> escaping malformed URI reference
line 203 column 13 - Warning: <table> proprietary attribute "height"
line 209 column 13 - Warning: <table> proprietary attribute "height"
line 215 column 13 - Warning: <table> proprietary attribute "height"
line 221 column 13 - Warning: <table> proprietary attribute "height"
line 227 column 13 - Warning: <table> proprietary attribute "height"
line 236 column 13 - Warning: <table> proprietary attribute "height"
line 242 column 13 - Warning: <table> proprietary attribute "height"
line 248 column 13 - Warning: <table> proprietary attribute "height"
line 254 column 13 - Warning: <table> proprietary attribute "height"
line 268 column 13 - Warning: <table> proprietary attribute "height"
line 270 column 145 - Warning: <img> escaping malformed URI reference
line 274 column 13 - Warning: <table> proprietary attribute "height"
line 280 column 13 - Warning: <table> proprietary attribute "height"
line 297 column 13 - Warning: <table> proprietary attribute "height"
line 299 column 139 - Warning: <img> escaping malformed URI reference
line 303 column 13 - Warning: <table> proprietary attribute "height"
line 309 column 13 - Warning: <table> proprietary attribute "height"
line 315 column 13 - Warning: <table> proprietary attribute "height"
line 321 column 13 - Warning: <table> proprietary attribute "height"
line 330 column 13 - Warning: <table> proprietary attribute "height"
line 336 column 13 - Warning: <table> proprietary attribute "height"
line 342 column 13 - Warning: <table> proprietary attribute "height"
line 348 column 13 - Warning: <table> proprietary attribute "height"
line 354 column 13 - Warning: <table> proprietary attribute "height"
line 368 column 13 - Warning: <table> proprietary attribute "height"
line 374 column 13 - Warning: <table> proprietary attribute "height"
line 380 column 13 - Warning: <table> proprietary attribute "height"
line 386 column 13 - Warning: <table> proprietary attribute "height"
line 392 column 13 - Warning: <table> proprietary attribute "height"
line 409 column 13 - Warning: <table> proprietary attribute "height"
line 415 column 13 - Warning: <table> proprietary attribute "height"
line 421 column 13 - Warning: <table> proprietary attribute "height"
line 427 column 13 - Warning: <table> proprietary attribute "height"
line 433 column 13 - Warning: <table> proprietary attribute "height"
line 439 column 13 - Warning: <table> proprietary attribute "height"
line 534 column 69 - Warning: <a> escaping malformed URI reference
line 539 column 108 - Warning: <a> escaping malformed URI reference
line 539 column 164 - Warning: <a> escaping malformed URI reference
line 598 column 111 - Warning: <img> escaping malformed URI reference
line 688 column 108 - Warning: <img> escaping malformed URI reference
line 734 column 83 - Warning: <img> escaping malformed URI reference
line 739 column 93 - Warning: <img> escaping malformed URI reference
line 788 column 53 - Warning: <img> escaping malformed URI reference
line 789 column 83 - Warning: <img> escaping malformed URI reference
line 789 column 268 - Warning: <img> escaping malformed URI reference
line 820 column 7 - Warning: <table> proprietary attribute "height"
line 830 column 204 - Warning: <strong> proprietary attribute "align"
line 849 column 292 - Warning: <a> proprietary attribute "alt"
line 855 column 67 - Warning: <img> escaping malformed URI reference
line 856 column 59 - Warning: <img> escaping malformed URI reference
line 857 column 50 - Warning: <img> escaping malformed URI reference
line 860 column 70 - Warning: <img> escaping malformed URI reference
line 781 column 5 - Warning: trimming empty <strong>
line 782 column 5 - Warning: trimming empty <strong>
line 783 column 52 - Warning: trimming empty <p>
line 791 column 5 - Warning: trimming empty <p>
line 854 column 7 - Warning: trimming empty <p>
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like HTML Proprietary

domedia
10-13-2009, 02:14 PM
All the errors have a verbal explanation already. Can you clarify what you do not understand?

coloeagle
10-14-2009, 11:50 PM
Just curious, are you going for 100% valid code?