提问人:roshan 提问时间:11/27/2014 最后编辑:roshan 更新时间:2/24/2015 访问量:168
如何在没有 XHTML 声明的情况下解释 HTML + XML
How to Interpret HTML + XML without XHTML declaration
问:
本文档的类型是什么。我很困惑,因为它有 html 4.0 声明并且还包含 xml。 以下是文档的结构:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<TITLE>Container</TITLE>
<LINK href="css/xyz.css" type="text/css" rel="stylesheet">
</head>
<frameset >
<FRAMESET rows="97%,28" border="0" frameBorder="0">
<frame name="main" src="ContainerInner.htm">
<FRAME Name="Statusbar" SRC="html/MainStatusbar.htm">
</FRAMESET>
<noframes>
<p>This page requires frames, but your browser does not support them.</p>
</noframes>
</frameset>
</html>
<!-- ContainerInner.htm -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ContainerInner</title>
</head>
<body>
<IFRAME Name="MainScreen" SRC="html/loading.htm"></IFRAME>
<IFRAME Name="MenuTree" SRC="html/BlankMenu.htm" />
<iframe name="ToolbarScreen1" src="html/FavouriteMenus.htm"></iframe>
<IFRAME name="TaskQueues" src="html\UserInfo.htm"></IFRAME>
</body>
</html>
<!-- html/loading.htm -->
<!-- screen inside IFRAME MainScreen -->
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<HEAD></HEAD>
<BODY> </BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
我有以下问题:
- 它是 XHTML 文档还是 HTML。
- 像上面这样有多个文档类型声明是否合法。
- 最新版本的现代浏览器(如 chrome)是否支持此文档,因为它具有框架。
答: 暂无答案
评论
ContainerInner.html
ContainerInner.htm
text/html
application/xhtml+xml