正在尝试验证以便可以使用Javascript

问题描述:

我一直在尝试验证我的页面(我使用SquirrelCart),这样我就可以使Quick Total工作。我已经得到了下来,从35个错误18,但是我搞糊涂了一些错误的正在尝试验证以便可以使用Javascript

页:http://www.victorianwinter.com/store.php/products/anwen-fruitparfait

验证输出:18个错误

Error Line 161, Column 71: document type does not allow element "a" here; missing one of "dt", "dd" start-tag 

…f="victorianwinter.com/store.php" style="text-decoration: none" ><dt/> Blog</a> 

✉ 

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
Error Line 161, Column 76: document type does not allow element "dt" here 

…f="victorianwinter.com/store.php" style="text-decoration: none" ><dt/> Blog</a> 

✉ 

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). 
Error Line 162, Column 85: document type does not allow element "a" here; missing one of "dt", "dd" start-tag 

…ickr.com/photos/victorianwinter" style="text-decoration: none"><dt/> Flickr</a> 

✉ 

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
Error Line 162, Column 90: document type does not allow element "dt" here 

…ickr.com/photos/victorianwinter" style="text-decoration: none"><dt/> Flickr</a> 

✉ 

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). 
Error Line 163, Column 86: document type does not allow element "a" here; missing one of "dt", "dd" start-tag 

…book.com/VictorianWinterDolls" style="text-decoration: none"><dt/> Facebook</a> 

✉ 

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
Error Line 163, Column 91: document type does not allow element "dt" here 

…book.com/VictorianWinterDolls" style="text-decoration: none"><dt/> Facebook</a> 

✉ 

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). 
Error Line 164, Column 77: document type does not allow element "a" here; missing one of "dt", "dd" start-tag 

…//twitter.com/victorianwinter" style="text-decoration: none" ><dt/> Twitter</a> 

✉ 

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
Error Line 164, Column 82: document type does not allow element "dt" here 

…//twitter.com/victorianwinter" style="text-decoration: none" ><dt/> Twitter</a> 

✉ 

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). 
Error Line 165, Column 5: end tag for "dl" which is not finished 

</dl> </div> 

✉ 

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p> 

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on. 
Error Line 464, Column 10: end tag for "div" omitted, but OMITTAG NO was specified 

    </table ></p> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 221, Column 11: start tag was here 

       <div> 

Error Line 464, Column 10: end tag for "td" omitted, but OMITTAG NO was specified 

    </table ></p> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 211, Column 18: start tag was here 

      </td><td valign="top" bgcolor="#FAFFFC" ><table class="header" widt… 

Error Line 464, Column 10: end tag for "tr" omitted, but OMITTAG NO was specified 

    </table ></p> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 201, Column 1: start tag was here 

<tr><td style="padding-right: 10px;" align="center" valign="top"> 

Error Line 464, Column 14: end tag for element "p" which is not open 

    </table ></p> 

✉ 

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. 

If this error occurred in a script section of your document, you should probably read this FAQ entry. 
Error Line 471, Column 7: end tag for "hr" omitted, but OMITTAG NO was specified 

     <hr> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 471, Column 3: start tag was here 

     <hr> 

Error Line 483, Column 18: end tag for "form" omitted, but OMITTAG NO was specified 

</div></div></div></div> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 186, Column 2: start tag was here 

    <form id="add_to_cart_form_0b23bc01371cc135196b730ed939fc86" accept-charset="u… 

Error Line 505, Column 29: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag 

    <div class="linksbottom"><a href="/pages/about-us" >About Us</a> | 

✉ 

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 
Error Line 523, Column 111: required attribute "alt" not specified 

…t"> <img src="http://www.victorianwinter.com/sc_images/icons/creditcards.gif"/> 

✉ 

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. 

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. 
Error Line 528, Column 7: end tag for "div" omitted, but OMITTAG NO was specified 

</body> 

✉ 

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 
Info Line 35, Column 1: start tag was here 

<div id="sc" class="cols2"> 

线161-164:定义列表<DL>的结构应该是:

<dl><dt>term1</dt><dd>definition1</dd> 
    <dt>term2</dt><dd>definition2</dd> 
    ... 
</dl> 

你的名单看起来是这样的:

<dl><a ...><dt/>Text</a> 
    <a ...><dt/>Text</a> 
    ... 
</dl> 

这甚至还没有接近同样的事情。我不知道为什么你会在第一时间使用<dl>,它看起来像你想<ul>,所以它应该是:

<ul><li><a ...>Blog</a></li> 
    <li><a ...>Flickr</a></li> 
    ... 
</ul> 

接下来,你的页面有3个<form>标记,启动形式,但只有有1 </form>结束它们。可能还有其他不匹配的标签,这就搞乱了元素的嵌套,这可能是导致大部分其他错误的原因(很难准确地说 - 一旦事情不同步,所有的地狱都会崩溃)。

+0

哦,是的 - 我终于弄到那部分修复:)剩下9个错误! :) 我也很困惑所有'OMITTAG NO被指定' - 这可能也解决后找到讨厌/形式? – BrittanyWintr

+0

这可能是因为像'

'没有匹配的'

'这样的事情发生的,这在严格的HTML中是不允许的。 – Barmar