[internetworkers] Need Help Troubleshooting HTML Page

Steven Champeon schampeo at hesketh.com
Mon Dec 12 10:54:48 EST 2005


on Mon, Dec 12, 2005 at 01:31:34AM -0500, Scott wrote:
> About comment tags, from memory:
> 
> <!-- this is valid, notice the spaces -->
> <!--------this isn't valid as it's missing the space after the open  
> tag and before the closing tag--------->

Nah, it's got nothing to do with the spaces. SGML comments are actually
delimited by "--", the <!> is just a "null tag" - no element identifier -
and HTML comments are the same way, but to varying degrees of strictness
depending on what browser you're dealing with. In SGML,

--
this is a comment
--

but in HTML, you need comment delimiters on each line, enclosed in null
tags, a la

<!-- this is -->
<!-- a comment -->

In general, I find that when the W3C/WDG validators tell me something is
horribly wrong with my markup, I try to fix it before even asking for
help with anything else. :) YMMV. You're missing a pile of required
attributes as well - e.g., "script" needs a "type". 

Steve

-- 
hesketh.com/inc. v: +1(919)834-2552 f: +1(919)834-2554 w: http://hesketh.com
antispam news, solutions for sendmail, exim, postfix: http://enemieslist.com/



More information about the InterNetWorkers mailing list