W3C Compliance (1 Error)

Topics: General Help
Jul 21, 2008 at 7:22 AM
Edited Jul 21, 2008 at 8:51 AM
I have been looking for a CAPTCHA server control and this is the only I can find that is close to being W3C compliant. The markup validation fails in an img tag that does not use an alternate text:

…50px;width:150px;border-width:0px;" /><div id="ctl00_ContentPlaceHolder1_Auto

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

I have been analyzing the code but I can't find the method that generates the image with a missing alternate text. Any help would be appreciated.

Update: i solved this problem by using a template instead.

Jul 21, 2008 at 8:54 AM

The recommended approach is to use a template so that you can add the alt attribute yourself.  I see that you've done it already :)

Note that this has already been reported and I plan to fix it for the next release:


You may also be interested in this work item as well since it's related to accessibility:


- Dave