View Full Version : sitescore
Tazuk
6th January 2006, 15:08
I have just used a sitescore tool and it just gave my site very poor for html use:
Your website does not contain the following basic HTML tags: <body>. Not only will your website not comply with W3C standards but it may not render properly in browsers.
But the w3c site as approved my site without the body tag and disapproved it with the body tag.
Can anyone clarify how these 2 valuable information tools can clash and which should i listen to?
TAZ
Enigma121
6th January 2006, 15:40
For compliance you should have a <head> and <body> tag and sort appropriate tags into the various sections.
I seem to recall encountering something similar from the W3C parser when trying to process a page with inappropriate tags in the <head> or <body>.
If you don't have either and it's passing you may have found a bug in the W3C parser.
DavidHorn
6th January 2006, 16:23
It certainly appears that your page does not have a BODY tag ... I don't understand how it passes validation without one, but you absolutely should have one.
Perhaps <body> is not essential in HTML 4.01, but I find that impossible to believe. I imagine that the W3C parser is the one misleading you here.
Tazuk
6th January 2006, 16:24
the site passes without the body and head closure tag if it is a bug what would be the best action to take
DavidHorn
6th January 2006, 16:26
Add in a head closure tag and add in a body opening tag!
In your code you have a line that reads like this:
... about thirteen lines down. Immediately before that, add in this:
</head>
Then, immediately after the add in this:
<body>
Check that it still looks as you intend, then re-upload the pages,
Hope this helps,
David
Tazuk
6th January 2006, 16:30
I had done that then checked and it failed with w3c i then removed it again and it passed with w3c.
I know it is essential to have them but it appears that my site is working without.
confused lol
Mortime Business Software
6th January 2006, 16:43
The notation is for comments which are ignored in the formatting of the web page. Therefore you are cutting out the opening <header> tag. The following should be valid...
<html>
<header>
<title>
...
</title>
...
</header>
<body>
...
</body>
</html>
Have a look at the html source of this page to get an idea. In IE you can go to...
View>Source
...on the menu bar.
Dave