简体   繁体   English

HTML与标记验证服务:属性构造错误

[英]HTML Vs Markup Validation Service: attributes construct error

why the Markup Validator says it has error in the html code below? 为什么标记验证器说下面的html代码有错误?

Line 287, Column 80: attributes construct error

…ion" value="set=1&amp;page=2" /><ul><li><a href="http://campusfaithhub.org/vie…

http://validator.w3.org/check?uri=http%3A%2F%2Fcampusfaithhub.org%2Ffood%2Ffood-should&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&user-agent=W3C_Validator%2F1.1 http://validator.w3.org/check?uri=http%3A%2F%2Fcampusfaithhub.org%2Ffood%2Ffood-should&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&user-agent = W3C_Validator%2F1.1

<div id="pagination">
    <!-- add this to fix IE whitespace bug. IE sees a space inside an empty div, and applies line-height to it. The div will then be expanded in IE6 (and older) to accommodate this space. There's your gap. Simplest solution is to make sure IE6 understands that the empty div really _is_ empty, by putting a comment inside it and make sure there's no line-break. -->
    <input type="hidden" class="last-pagination" value="set=1&amp;page=2" />
    <ul>
        <li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&amp;page=1"class="current-pagination" rel="1">1</a></li>
        <li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&amp;page=2" rel="1">2</a></li>
    </ul>
</div>
<!--pagination-->

I have a hidden input field to store some info. 我有一个隐藏的输入字段来存储一些信息。 If I take it out, it still is validated with errors! 如果我将其取出,则仍然经过验证! I can't find anything else to fix - can u see what I have done incorrectly? 我找不到其他要修复的东西-您能看到我做错了吗? thanks! 谢谢!

EDIT: after viewing the source of your actual page, I see this problem... 编辑:查看您的实际页面的源之后,我看到此问题...

<input type="hidden" class="last-pagination" value="set=1&amp;page=2" /><ul><li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&amp;page=1"class="current-pagination" rel="1">1</a></li><li><a href="http://campusfaithhub.org/views/includes/layouts/items_comment.php?set=1&amp;page=2" rel="1">2</a></li></ul></div> 

Specifically: page=1"class="current 具体来说: page = 1“ class =” current

You need a space between the closing quote and opening attribute tag. 在结束引号和开始属性标记之间需要一个空格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM