Reply to Re: <html> tag missing, but still validating

Your name:

Reply:


Posted by Toby Inkster on 10/07/05 10:01

Barbara de Zoete wrote:

> <!ELEMENT HTML O O (%html.content;) -- document root element -->

And it's also in the plain English bit:

http://www.w3.org/TR/html401/struct/global.html#h-7.3

| 7.3 The HTML element
| [...]
| Start tag: optional, End tag: optional

Similarly, the start and end tags for HEAD and BODY are optional. A valid
HTML 4.01 Strict page can consist of as few as three tags, plus DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<TITLE>Example</TITLE>
<P>Example

HTML 4.01 Transitional doesn't even need the <P>. Transitional allows
inline text to sit directly inside the BODY, whereas Strict says that you
can only have block-level elements inside BODY.

Note though, that valid HTML does need a BODY *element*. It's just that
the <BODY> and </BODY> *tags* to explicitly show where the BODY element
starts and ends are optional -- the element exists without them. (Ditto
HTML and HEAD elements.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация