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

Re: [VE][127] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Mon, 08 Nov 2004 12:04:58 +1100
Message-ID: <418EC63A.2060001@iinet.net.au>
To: Glynn Williams <glynn@wowdesignsolutions.com>
CC: www-validator@w3.org

Glynn Williams wrote:
> /Line 247, column 204/: required attribute "ALT" not specified
> 
> |...0')" onMouseOut="MM_swapImgRestore()"*>*|

It means you need to specify an alt attribute for the <img> and <area> 
elements.
eg.
<area shape="rect" coords="2,1,59,34" href="/path/to/aboutus.html"
       onMouseOver="MM_swapImage('aboutus',...)"
       onMouseOut="MM_swapImgRestore()"
       alt="About Us">

These are some good references for writing good alt text:
http://hixie.ch/advocacy/alttext
http://hixie.ch/advocacy/alt-tooltips

> Actual:
> 
>  <area shape="rect" coords="2,1,59,34" href="#" 

That href="#" attribute is also quite useless.  I hope you're actually 
going to put in a proper link later, and not just use some onclick 
attribute and javascript to provide the link.  It is, unfortunately, 
quite common to see people make that mistake, so I'm pointing it out in 
the hope that you don't make it also.

> /Line 133, column 27/: there is no attribute "HEIGHT"
> 
> |<table width="100%" height=*"*100%" border="0" cellpadding="0" 
> cellspacing="0" bg|

There is no height attribute in any version of HTML for the table 
element.  You should remove it, and you should also remove the width, 
border, cellpadding and cellspacing attributes.  They are 
presentational, and thus should be specified in an external stylesheet.

> /Line 139, column 52/: there is no attribute "BACKGROUND"
> 
> |... colspan="2" align="left" background=*"*images/bv_logobg.gif"><img 
> src="images/

Same problem.  There is no background attribute allowed on the <td> 
elements.  It, and the align attribute are also presentational and 
should be specified in an external stylesheet.

Some CSS to replace some of those looks like this:

table { width: 100%; height: 100%; border-collapse: collapse; }
td { padding: 0; background: white url(/images/bv_logo_bg.gif);
      color: black; }

I suggest you look up some good CSS and HTML tutorials to learn how to 
write good markup and use stylesheets properly.  There are many 
resources available.
http://www.mezzoblue.com/archives/2004/08/25/standards_re/comments/

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/    Rediscover the Web
http://SpreadFirefox.com/   Igniting the Web
Received on Monday, 8 November 2004 01:05:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:15 GMT