W3C home > Mailing lists > Public > site-comments@w3.org > July 2001

Noframes - Error ?

From: Guenter Cornett <cornett@bambusspiele.de>
Date: Sat, 7 Jul 2001 00:06:15 -0400 (EDT)
Message-ID: <3B468A93.65A8C57B@bambusspiele.de>
To: site-comments@w3.org
refer to:
http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#h-16.4.1

Hi,

I try to write a short HTML-guide for a HTML-teacher. I just had a look
at 
your site for the correct syntax of noframes (below or within frameset).

I found:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
     "http://www.w3.org/TR/REC-html40/frameset.dtd">
  <HTML>
  <HEAD>
  <TITLE>A simple frameset document</TITLE>
  </HEAD>
  <FRAMESET cols="20%, 80%">
    <FRAMESET rows="100, 200">
        <FRAME src="contents_of_frame1.html">
        <FRAME src="contents_of_frame2.gif">
    </FRAMESET>
    <FRAME src="contents_of_frame3.html">
    <NOFRAMES>
        <P>This frameset document contains:
        <UL>
           <LI><A href="contents_of_frame1.html">Some neat contents</A>
           <LI><IMG src="contents_of_frame2.gif" alt="A neat image">
           <LI><A href="contents_of_frame3.html">Some other neat
contents</A>
        </UL>
    </NOFRAMES>
  </FRAMESET>
  </HTML>

I've two questions:

Main question: Isn't there a body-tag missing within the noframes-tag ?

    <NOFRAMES>
<BODY>
        <P>This frameset document contains:
        <UL>
           <LI><A href="contents_of_frame1.html">Some neat contents</A>
           <LI><IMG src="contents_of_frame2.gif" alt="A neat image">
           <LI><A href="contents_of_frame3.html">Some other neat
contents</A>
        </UL>
</BODY>
    </NOFRAMES>

If you don't place a body-tag within the noframes-area a browser which
doesn't support frames would find the head-area and below the text
without a body. 

If no body is required is it allowed ?


Additional question: what's allowed/required/recommended ? 

1.) <head>...</head>
      <frameset>...</frameset>
      <noframes><body>...</body></noframes>

2.) <head>...</head>
      <frameset>...
      <noframes>...</noframes>
                              </frameset>

3.) <head>...</head>
      <frameset>...</frameset>
      <noframes>...</noframes>

4.) <head>...</head>
      <frameset>...</frameset>
      <body><noframes>...</noframes></body>

5.) <head>...</head>
      <frameset>...</frameset>
      <body>...</body>

      (of course in every case: <frame> within <frameset>)

Thanks for big help and sorry for simple english (I'm german).

Guenter Cornett

-- 
Guenter Cornett        
BAMBUS SPIELEVERLAG:   http://www.bambusspiele.de/e_index.html
Received on Saturday, 7 July 2001 10:40:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:26 GMT