- From: David Dorward <david@dorward.me.uk>
- Date: Sat, 08 May 2004 09:16:36 +0100
- To: ๓ลาวลส <but@ngs.ru>
- Cc: www-validator@w3.org
On Sat, 2004-05-08 at 08:56, ๓ลาวลส wrote:
Please use appropriate subject lines. You are not making an error
message suggestion, so your subject line shouldn't claim that you are.
> I think this code valid.
Why do you believe that? The validator says it isn't.
>  Could you explain me if not.
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "DTD/xhtml1-transitional.dtd">
> <html><head>
> <title>1 2 3</title>
> </head><body>
> <p><script type="text/javascript"><!--
> document.write('Hello!');
> //--></script>
Oh dear. Not a syntax error, so it won't be picked up by the validator,
but still a nasty little error.
I suggest you read:
http://www.w3.org/TR/xhtml1/#h-4.8
and
http://www.hixie.ch/advocacy/xhtml
> <noscript>No hello!</noscript></p>
Paragraphs may contain only inline data. <noscript> elements are block
level. Block level is not inline thus noscript elements may not exist
inside a paragraph.
> </body></html>
-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Received on Saturday, 8 May 2004 04:16:22 UTC