PDA

View Full Version : NET-enabling start-tag requires SHORTTAG YES


loki512
01-27-2008, 01:44 PM
After putting the counter on my webpage I checked it with Markup Validation Service. And got this message: Line 165, Column 18: NET-enabling start-tag requires SHORTTAG YES.

resolution stats" /></a></div></noscript>

The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HMTL 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

This happens on all the pages I put the counter on. What can I do about it?

My username is loki512

Arne
01-27-2008, 03:11 PM
After putting the counter on my webpage I checked it with Markup Validation Service. And got this message: Line 165, Column 18: NET-enabling start-tag requires SHORTTAG YES.

resolution stats" /></a></div></noscript>
What you get is a warning, not an error from the validator. That slash ("/") sign is within for the image element in the <noscript> part. Javascript enabled browsers (most of them) don't "see" that. But if you like to clear even the warning, then just remove the slash.

loki512
01-27-2008, 04:23 PM
Thanks for you advice and solution.:-D