W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] <html>, <head> and <body> tag

From: Alex Bishop <alexbishop@gmail.com>
Date: Sun, 19 Feb 2012 00:52:46 +0000
Message-ID: <4F4047DE.7040709@gmail.com>
On 19/02/2012 00:24, Keefe Tang wrote:
> The<html>,<head>  and<body>  tag has been optional since HTML4
> (http://www.w3.org/TR/html4/struct/global.html) and I was wondering
> if it is still the case with HTML5 since it no longer specify that
> the tags are optional on the current HTML5 spec page
> (http://www.w3.org/TR/html5/semantics.html#the-html-element).

The <html>, <head> and <body> start and end tags can be omitted in 
certain circumstances. See 
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#optional-tags 
for details.

Alex

-- 
Alex Bishop
alexbishop at gmail.com
Received on Saturday, 18 February 2012 16:52:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC