W3C home > Mailing lists > Public > www-html@w3.org > October 2000

RE: Can the frameset element contain body?

From: Dave J Woolley <david.woolley@bts.co.uk>
Date: Fri, 13 Oct 2000 11:37:45 +0100
Message-ID: <81E4A2BC03CED111845100104B62AFB5824ACE@stagecoach.bts.co.uk>
To: "'www-html@w3.org'" <www-html@w3.org>
> From:	Morten Wang [SMTP:mww@infostream.no]
> 
> Looking at the HTML 4.01 DTDs and recommendation regarding the NOFRAMES
> element I've started wondering if it's at all legal, maybe even
> required, to have a BODY element inside the NOFRAMES element.
> 
	[DJW:]  When used in a frameset it is mandatory to have a
	body element.  However, BODY tags are optional for both start
	and end of the element in HTML (but not XHTML).  Thus, the
	parse tree and document object model will have a body element
	even though there are no <BODY> and </BODY> tags.

	The following 3 lines are about the minimum syntactically
	valid HTML 4.01 document when you allow for optional tags:

	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
	<title></title>
	<p> 

	This contains HTML, HEAD and BODY elements, even though
	none are explicit.  The DOCTYPE may not be minimal.
Received on Friday, 13 October 2000 06:38:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:44 GMT