<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 2010-06-04 18:39, Daniel Persson wrote:
<blockquote
cite="mid:AANLkTik1az36FI9Ik9h0ODBv0A8ftBniXbJQgaPV0OBx@mail.gmail.com"
type="cite">I am not advocating ad-tags. The idea of globally
structuring content on the web is very appealing, it would make it
easier for a lot of things and a lot of people. Let's do it!
<div>...but I can't see it happening where <body> would be main
content + ads + anything there is not a sensible tag for + anything a
lazy/stressed/unconscious author didn't tag otherwise. Let's just have
a main content tag or a strong main content strategy.<br>
</div>
<br>
</blockquote>
<br>
Hmm! It is a valid point actually.<br>
Oh and here is some food for though. This works in all latest browsers.
Opera and Firefox have same behavior, while Chrome is a tad different,
and as IE is unable to style unknown tags sadly.<br>
<br>
<!doctype html><br>
<html><br>
<head><br>
<title>Test</title><br>
<style><br>
aside {border:1px solid #bf0000;white-space:nowrap;}<br>
</style><br>
</head><br>
<aside><br>
Just testing aside outside body!<br>
</aside><br>
<body><br>
<article><br>
Main part of article.<br>
</article><br>
</body><br>
</html><br>
<br>
As you can see the aside is outside the body, all latest browsers seem
to handle this pretty fine.<br>
<a class="moz-txt-link-freetext" href="http://validator.w3.org/">http://validator.w3.org/</a> on the other hand gives the error " <em>Line
12, Column 6</em>: <span class="msg">body start tag found but the body
element is already open.</span><code class="input"> <body<strong
title="Position where error was detected.">></strong></code>"<br>
<br>
Now, either that is a bug in the validator, or the body is automatic.<br>
And sure enough, removing the <body> and </body> tags the
document validates, and none of the browsers behave differently at all.<br>
Is the body tag optional or could even be redundant in HTML5 ?<br>
<br>
I don't mind really, as currently I only use body to put all the
"other" tags inside, so not having to use the body tag at all would be
welcome,<br>
though I suspect a lot of legacy things rely on the body tag.<br>
<br>
<pre class="moz-signature" cols="72">--
Roger "Rescator" Hågensen.
Freelancer - <a class="moz-txt-link-freetext" href="http://EmSai.net/">http://EmSai.net/</a>
</pre>
</body>
</html>