0

像许多其他提问者一样,我在使用 W3C Validator 时遇到了两个问题。这是我在 Wordpress CMS 页面中的代码

[twocol_one]"Out of love with your kitchen. Is it time for some KGC . . .Kitchen Guidance Counselling?" Maybe we need to sit down together and see what the Duleek Olive Wood and Lime Green Fitted Kitchen does for you. With its rich Grainy Olive Wood doors mixed with the loud lime green slab doors there is definitely a statement that can be made here. Read more about Kitchen Makeovers Below!<br /><h2>Benefits Include:</h2>
<strong>
• Eye Level Oven &amp; Microwave
• Easy Access Corner Presses
• Easy to Clean
• Hydraulic Hinged Wall Units
</strong>
<h3>Shop Online - Click Below &amp; Off You GO!</h3>
[button link="http://www.kitchens4u.ie/shop" color="red"]Shop Online[/button]

[/twocol_one] [twocol_one_last]<a href="http://www.kitchens4u.ie/wp-content/uploads/2013/02/Duleek-Olivewood-Lime-Green.gif"><img class="alignnone size-medium wp-image-79" alt="the duleek olivewood and lime green fitted kitchen from kitchens4u.ie dublin ireland" src="http://www.kitchens4u.ie/wp-content/uploads/2013/02/Duleek-Olivewood-Lime-Green.gif" width="300" height="225" /></a>Duleek Olive Wood and Lime Geen Fitted Kitchen - Click Image to Enlarge<br />[/twocol_one_last][hr]<br /><h3 style="text-align: center;">Kitchen Tip No. 31: When Doing DIY Kitchens</h3><br /><em>"Measure Twice - Cut Once!"</em><br />[hr]<br />[twocol_one]<h2>What We Can Do For You!</h2>[unordered_list style="bullet"]<ul><li>FREE Consultation in your home.</li>
    <li>FREE 3D Graphic Design.</li>
    <li>Plumbing Service.</li>
    <li>Electrical Service.</li>
    <li>Gas Services.</li>
    <li>Plastering Services.</li>
    <li>Ceramic Tiling.</li>
    <li>Waste Removal.</li>
    <li>Safe Disposal of Old Appliances.</li>
    <li>Full Project Management.</li>
    <li>Give you Peace of Mind.</li>
    <li>CLICK BELOW TO LET US KNOW!</li></ul>[/unordered_list]<br />[button link="http://www.kitchens4u.ie/contact-us/" size="large" color="orange"]FREE CONSTULATION[/button] [/twocol_one] [twocol_one_last]<br /><h2>Discover The Easy Stress Free Way</h2><br />A fitted kitchen is a big undertaking, but it is also investment in your home and you should do your best to make the right decisions. At Kitchens4u.ie we are always on hand to help clients understand the big picture. We will be with you every step of the way to advise you on all aspects of your fitted kitchen or bedroom project. We have all the experts when it comes to Plumbing, Electrics, Tiling, Plastering etc, so there is no need for you to worry. And to keep you stress free throughout the whole process YOU just deal with one team. <strong>The Kitchens4u Team.</strong> Discover the secret of stress FREE kitchen renovations, call us now on <strong>085-2311086</strong> or click below to arrange a FREE consultation in your home.[/twocol_one_last]

这是我无法删除的第一个验证错误。它在某个地方的标题中。我在 PHP 中找到了一些脚本来删除它 - 我尝试了它们但没有成功。如果有人可以给我一些帮助,我将不胜感激。我遇到了应该放在标题中的脚本以及应该放在 .htaccess 文件中的脚本。尝试了标题中的脚本 - 没有工作。.htaccess 文件在服务器上不可见。

这是错误:错误第 67 行,第 64 列:元素元上属性 http-equiv 的错误值 X-UA-Compatible。

这是第二个错误。准确地说,我有很多这 4 个,在我的情况下,它们似乎是由 CMS 页面中的回车引起的。最后一个的问题是它显示在您看到主页的页面底部。[/twocol_one_last] - 从我的角度来看,段落开头没有</div></p>也没有打开,但验证器<p>是说有。这是 W3C 验证器在第 306 行所说的

<p>A fitted kitchen is a big undertaking, but it is also investment in your home and you should do your best to make the right decisions. At Kitchens4u.ie we are always on hand to help clients understand the big picture. We will be with you every step of the way to advise you on all aspects of your fitted kitchen or bedroom project. We have all the experts when it comes to Plumbing, Electrics, Tiling, Plastering etc, so there is no need for you to worry. And to keep you stress free throughout the whole process YOU just deal with one team. <strong>The Kitchens4u Team.</strong> Discover the secret of stress FREE kitchen renovations, call us now on <strong>085-2311086</strong> or click below to arrange a FREE consultation in your home.</div></p>

然而我<h2>在段落之前的标题标签只是在<br />段落开始之前运行。

4

2 回答 2

0

你的1.问题

我猜您没有向我们展示代码的相关部分,但错误消息表明您正在使用具有属性和值的meta元素。http-equivX-UA-Compatible

这在 HTML5 中是不允许的。您只能使用HTML5 规范中列出的值在 WHATWG wiki 中注册的值。

正如您将看到的,X-UA-Compatible是一个提议的扩展。目前还不允许,但将来可能会。

你的2.问题

您正在关闭元素的div内部,但没有在那里打开:pdiv

<p>…&lt;/div></p>

所以删除</div>相应的。在里面打开它p,无论你需要什么。

如果您没有看到这些,您可能正在使用所见即所得的编辑器来编辑您的内容。切换到“HTML 编辑”模式以查看真实/生成的标记。

于 2013-04-19T15:07:07.580 回答
0

不要在属性上使用该类型的“[]”括号,而是使用“< >”这些。
请告诉我这是否有帮助,如果您可以提供您正在使用的整个 html 文件,那就太好了。例如,将按钮更改为:
[button link="http://www.kitchens4u.ie/shop" color="red"]Shop Online[/button]
告诉我这是否有效。

于 2013-04-18T14:29:59.877 回答