Reply to Re: required attribute "ALT" not specified .

Your name:

Reply:


Posted by cwdjrxyz on 06/01/07 00:41

On May 31, 6:16 pm, Dan <d...@tobias.name> wrote:
> On May 31, 12:36 pm, Lsimmons5 <i...@lookit-up.com> wrote:
>
> > I don't know how to correct the following html validation error:
> > Line 254, column 12: required attribute "ALT" not specified .
> > width="180"></a></td>
>
> Put in an ALT attribute, obviously.
>
> > The actual html from the page is as follows:
> > href="links.html"><img src="LINKS.gif" border="0" height="23"
> > width="180"></a></td>
>
> > Is it possible for anyone to correct the above html because I don't
> > understand it?
>
> <a href="links.html"><img src="LINKS.gif" border="0" height="23"
> width="180" alt="Links"></a></td>
>
> The actual value of the "alt" attribute depends on the nature and
> purpose of the image, but presuming that the image is a navigation
> button that says "Links", then "Links" would be the sensible value for
> it.

Perhaps a working example will also help. Go to the page
http://winefaq.hostexcellence.com/ . Note the image at the bottom and
the alt that goes with it. Click ENTER to go to the next page with
links buttons and see how I wrote the alt for the buttons. Next turn
off images. For example, for Firefox: tools tab > options > content >
uncheck load images automatically. Next go back to the url I gave. The
images at the bottom of the page are gone and are replaced by the alt
text. Then click ENTER to go to the next page. Note that the names of
the link buttons as given in the alt text are displayed. Also note
that these are underlined and now clicking the alt text for the link
buttons now replaces the images to go to a link. Also if you write
alt="", the W3C html validator is satisfied. This usually would not be
a good idea, but it might help in some special case, although I can
not think of a good reason for a blank alt text at the moment.

The entry page will have different images at the bottom when it is
reloaded. This is done with an external javascript to select from a
list of images at random. But some people turn off javascript. The
noscript code is for that case. People with script turned off get the
same image every time. Although this is not directly concerned with
the alt question, I mention it so you know what is going on when you
do not get the same image every time you enter the page.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация