Search code examples
htmldoctypeframeset

Frameset Doctype


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>

Solution

  • 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).