框架集文档类型

发布于 2024-11-04 08:32:18 字数 846 浏览 9 评论 0原文

如果我们使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜唯美灬不弃 2024-11-11 08:32:19

不,您不能将任何内容放在框架集之外,这与文档类型无关。

您只能将内容放入 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文