...确、一致地显示,就得告诉网页浏览器你正应用HTML或者XHTML的哪个版本,包含一个网页开头处的文档类型声明(doctype declaration)是什么意思。
基于1个网页-相关网页
Remember, you can use any of the XHTML document types as long as you include the full !DOCTYPE declaration.
请记住,只要包含全部 ! DOCTYPE 声明,就可以使用任何 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。
应用推荐