On May 14, 2010, at 12:44 PM, Andrew Burton wrote:
Actually, what I meant (and didn't say) is that a
"hello world"
program in
HTML these days takes no code at all, other than the text "hello
world"!
I just tested this on Firefox 2 before posting this reply. It seems
that
some (all?) *current-ish* (giving myself some room to move there!)
browsers
don't need the intro and outro HTML tags (e.g. HTML and BODY).
I don't recall any web browser ever actually requiring that in
order to spit out text.
So why do we have them?
Well, BODY is needed to differentiate from HEAD, if HEAD is
present. HTML is simply used to tell the browser that this is HTML,
as compared to XML or something else. The browser will typically
recognize it as such (or default to handling it as such) in the
absence of the HTML tag.
-Dave
--
Dave McGuire
Port Charlotte, FL