Jump to content

Transitional XHTML Problems


kwilliams

Recommended Posts

I'm trying to validate my new site, and I'm running into a problem. I've declared the Transitional XHTML v1.1 DTD for my site, like this:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...but when I try to validate my site (http://www.douglas-county.com/) using the W3 XHTML validator, I receive errors stating that I cannot use width, height, and event alt attributes within an image tag. I already understand that some of the errors are things that I need to fix, but I'm not sure what's going on with the others mentioned. Here's the path to the validator's results: http://validator.w3.org/check?uri=http%3A%...ine&group=0Why is this happening? Everything I read (like http://www.blackwidows.co.uk/resources/tut...comparison.php) states that those attributes are in fact accepted in XHTML 1.1 Transitional, so I'm thoroughly confused. Thanks for any input.

Link to comment
Share on other sites

First of all, the alt is for images and not for links. (line 27)Looking at the first alt error, you have a <div> tags within the link which is a no-no. (line 28)You cannot define a image width and height within a <input> tag. (line 258). If the image is default to that size then browser will render it that size. Some use images as a background for input using CSS.In various places you are using target="". If you are not going to declare anything for target then remove it from all places that has it. (line 311, 314, 317, etc.)valing="middle" is not allowed. Try using style="vertical-align: middle;" instead. Otherwise, give the div a class and use css.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...