簡體   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