标签P不允许 [英] Tag P not allowed

查看:114
本文介绍了标签P不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是 www.crimson-imperium.org 的网站管理员。

该网站已通过W3C的验证器验证。它通过了

过去的测试,但现在验证者抱怨不允许P标签。


我找不到P标签的原因是不允许的。我已经通过

挖掘了所有的源代码,但是,再一次,我找不到他们不允许使用
的原因。有人可以帮帮我吗?


谢谢。


- juraj

解决方案

juraj写道:

您好,我是 www.crimson-imperium.org
该网站已通过W3C的验证器验证。它通过了过去的测试,但现在验证者抱怨不允许使用P标签。

我找不到P标签不被允许的原因。我已经挖掘了所有的源代码,但是,再一次,我找不到他们不被允许的原因。有人可以帮帮我吗?

谢谢。

- juraj



你有2个关闭的p-tag一行


引用:

祝你们好运来自UKEG的所有人。< / p>< / p>

unquote


我猜这是验证器指出的问题。


RW


首先,它是一个元素,而不是一个标签。


juraj写道:

你好,我是网站管理员 www.crimson-imperium.org
该网站已通过W3C验证的验证员。它通过了过去的测试,但现在验证器抱怨不允许P标签。




问题是(至少第一个错误)你没有正确地支付
关闭之前的< p>元件。所有后续错误具有相同的原因,并且第一个错误在第104行。前一个< p>元素
在第103行打开的
不会关闭,直到第112行你在哪里
有两个连续的结束标记:< / p>< / p> ;"


因此,这个标记的DOM树,当正确地作为
application / xhtml + xml提供时,而不是错误地作为text / html因为你是在做b $ b;实际上看起来像这样。


< p>

< p />

< p />

...

< / p>


给出的每个错误都是针对4个嵌套的< p>元素。

从本质上讲,文档似乎格式正确,但你在错误的地方有

结束标记。


如果您使用的是HTML4而不是XHTML,那么< / p>结束标记

将由以下< p>的存在隐含。开始标记。


-

Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ 重新发现网页
http:// GetThunderbird.com/ 回收收件箱


您好,感谢您的帮助。我设法解决了这个并且满足了

验证器。


现在我有另一个问题:这个。
http://crimson-imperium.org/index.php?pastpolls


正如你所看到的,有大量的标记错误,而且一些

的解释令人困惑。


Hello, I am webmaster of www.crimson-imperium.org.
The site was validated with W3C''s validator. It passed the test in the
past, but now validator is complaining about not allowed P tags.

I can''t find the reason why P tags aren''t allowed. I''ve digged through
all the source code, but, again, I can''t find the reason they''re not
allowed. Can someone please help me?

Thank you.

- juraj

解决方案

juraj wrote:

Hello, I am webmaster of www.crimson-imperium.org.
The site was validated with W3C''s validator. It passed the test in the
past, but now validator is complaining about not allowed P tags.

I can''t find the reason why P tags aren''t allowed. I''ve digged through
all the source code, but, again, I can''t find the reason they''re not
allowed. Can someone please help me?

Thank you.

- juraj


You''ve got 2 closing p-tags in a row

quote:
good luck to you from all of us in UKEG.</p></p>
unquote

I guess that''s the problem the validator is pointing out.

RW


Firstly, it''s an element, not a tag.

juraj wrote:

Hello, I am webmaster of www.crimson-imperium.org.
The site was validated with W3C''s validator. It passed the test in the
past, but now validator is complaining about not allowed P tags.



The problem is (at least for the first error) that you have not properly
closed the previous <p> element. All following errors have the same
cause, and the first error is on line 104. The previous <p> element
which is opened on line 103 does not get closed until line 112 where you
have two consecutive end-tags: "</p></p>".

Thus, the DOM tree for this markup, when served properly as
application/xhtml+xml, rather than incorrectly as text/html as you are
doing; will actually look like this.

<p>
<p/>
<p/>
...
</p>

Each of the errors given are for the 4 nested <p> elements.
Essentially, the document appears to be well-formed, but you have the
end-tag in the wrong place.

If you had been using HTML4, instead of XHTML, then the </p> end-tag
would have been implied by the presence of the following <p> start-tag.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Hello, thanks for your help. I managed to solve this and satisfy the
validator.

Now I''ve another problem: this.
http://crimson-imperium.org/index.php?pastpolls

As you can see, there''s big amount of markup errors, and some
explanations are confusing.


这篇关于标签P不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆