W3C home > Mailing lists > Public > www-validator@w3.org > September 2004

Re: [VE][79] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Wed, 15 Sep 2004 15:46:48 +1000
Message-ID: <4147D748.1040106@iinet.net.au>
To: Andrew Gray <sweetandy@comcast.net>
CC: www-validator@w3.org

Andrew Gray wrote:
> For example, I have the code as follows:
>           <img src="images/break.bmp" width=100% height=15></img>
> The final closing tag for /img is underlined and red.

<img> is an empty element, so for HTML (unlike XHTML) you do not need to 
include the closing tag for it.  Just remove all occurances of </img> 
from your document to fix it.  However, I thought that was actually 
valid SGML syntax (like it is for XML) since there is nothing between 
the tags, so I don't know why the validator is complaining.  Perhaps 
I've been misinformed about that.

Lachlan Hunt
Received on Wednesday, 15 September 2004 05:49:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:42 UTC