框架集文档类型
如果我们使用frameset doctype,我们可以在该页面内的frameset标签之外使用普通的html标签吗?
下面是代码;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html:html locale="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset cols="*" rows="40,*">
<frame src="#" />
<frame src="#"/>
<noframes>
<body>
Please enable frames to view.
</body>
</noframes>
</frameset>
<a href="#">Is this Normal Anchor Tag allowed for frameset doctype and if yes, is this the correct position ?</a>
</html:html>
If we use frameset doctype, can we use normal html tags outside of the frameset tag within that page?
Below is the code;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html:html locale="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset cols="*" rows="40,*">
<frame src="#" />
<frame src="#"/>
<noframes>
<body>
Please enable frames to view.
</body>
</noframes>
</frameset>
<a href="#">Is this Normal Anchor Tag allowed for frameset doctype and if yes, is this the correct position ?</a>
</html:html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,您不能将任何内容放在框架集之外,这与文档类型无关。
您只能将内容放入 body 标记内,而框架集页面没有 body 标记(
noframes
标记内除外)。No, you can't put any content outside the frameset, and that has nothing to do with the doctype.
You can only put content inside the body tag, and a frameset page has no body tag (except inside the
noframes
tag).