繁体   English   中英

标记验证服务问题

[英]Markup Validation Service problems

我有一些问题才能验证我的网页。 如果可以,请在这里列出他们。


元素X未定义

您在文档中使用了上面命名的元素,但是您使用的文档类型并未定义该名称的元素。 此错误通常是由以下原因引起的:

incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).

Line 68, column 16: element "figure" undefined

        <figure***>***

文档类型此处不允许元素X; 缺少Y开始标签之一

所提到的元素不允许出现在放置它的上下文中。 提到的其他元素是唯一允许在此使用并且可以包含提到的元素的元素。 这可能意味着您需要一个包含元素,或者可能您已忘记关闭上一个元素。

出现此消息的可能原因是您尝试放置一个块级元素(例如“

内联元素(例如“”,“”或“”)内的“或”。

Line 44, column 36: document type does not allow element "h4" here; missing one of "object", "ins", "del", "map", "button" start-tag

            <p><h4 class="titlepub"***>***&nbsp;<a href="http................

提前谢谢,罗尔先生

是的,在我对问题的评论中,Dandy Roll的代码存在的问题是,他正在针对XHTML 1.0 Strict DTD验证其标记。 特别是,他使用了<figure>标记(直到HTML 5才标准存在),因此他的文档无法验证。

暂无
暂无

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

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