The DOCTYPE declaration should always be the first line in an XHTML document.
文档声明必须出现在XHTML文档的首行。
Your pages must have a DOCTYPE declaration if you want them to validate as correct XHTML.
如果你想使你的页面满足正确的XHTML的有效性你就必须使用DOCTYPE声明。
Remember, you can use any of the XHTML document types as long as you include the full !DOCTYPE declaration.
请记住,只要包含全部 !DOCTYPE声明,就可以使用任何XHTML文档类型。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element, and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
The XSLT in Listing 41 copies text, element, and attribute nodes in the source XML document, but namespace nodes and the DOCTYPE declaration are omitted.
清单41中的XSLT复制源xml文档中的文本、元素和属性节点,但是忽略名称空间节点和DOCTYPE声明。
While the DOCTYPE declaration informs a browser to use standards mode, it will still parse the HTML according to the rules in that DTD — in this case, HTML 4.0.
虽然DOCTYPE声明告诉浏览器使用标准模式,但是它仍然会根据那个DTD——即HTML 4.0的规则去解析html。
Declaring named entities in an XML document's DOCTYPE declaration is straightforward, and using them in the document body is something you probably already know how to do.
在XML文档的DOCTYPE声明中声明命名实体很简单,而且您可能已经知道如何在文档主体中使用它们。
Listing 5 shows the customary XML declaration, followed by a DOCTYPE statement that locates the DTD, in this case pointing at detail related to grammars.
清单5中首先展示常规的XML声明,然后是一个定位DTD的doctype语句,在本例中是指向与文法相关的详细信息。
The internal subset is part of the declaration, after the PUBLIC and/or SYSTEM identifier for your DTD and inside a bracketed section.
声明的一部分,位于DTD 的PUBLIC和/或SYSTEM标识符之后的方括号中。
The internal subset is part of the declaration, after the PUBLIC and/or SYSTEM identifier for your DTD and inside a bracketed section.
声明的一部分,位于DTD 的PUBLIC和/或SYSTEM标识符之后的方括号中。
应用推荐