框架集Doctype

时间:2011-05-02 11:26:57

标签: html doctype frameset

如果我们使用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>

1 个答案:

答案 0 :(得分:2)

不,你不能在框架集之外放置任何内容,这与doctype无关。

您只能将内容放在body标记内,而frameset页面没有body标记(noframes标记内除外)。

相关问题