Re: Claims there is not attribute "border"

Parker Kuivila wrote:
> 
> Your validator claimed that there is no "border" attribute in a 
> frameset. This is confusing, because if i remove the 'border ="0"' part 
> then borders appear. That means that the XHTML is accepting the attribute.

The border attribute is allowed in the HTML 4.01 and XHTML 1.0 
Transitional DTDs, not the Strict DTDs.

The easiest way to remove unwanted borders from images (which typically 
appear in some browsers when the images are links) is to use CSS to 
remove them.  I find this rule effective in the majority of cases:

   a img, img[usemap], object[usemap] { border: 0; }

However, it doesn't handle images used as image maps in IE because IE 
doesn't support the attribute selector.

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Tuesday, 27 June 2006 06:19:20 UTC