Click to See Complete Forum and Search --> : I need Help With 2 Errors


mrcountry
10-24-2005, 08:26 AM
Please help me with these 2 errors. I just cant figure them out. I know they are probably simple errors, but im not very smart when it comes to this stuff. I would greatly appreciate your help.

http://www.countrycustomtile.com/Untitled.html

Error Line 50 column 69: required attribute "ALT" not specified.
...g src="Tlile Logo22.gif" width="548" height="63">

Error Line 66 column 26: there is no attribute "HEIGHT".
<table width="755" height="691" border="0">


Thanks so much for the help

WebOn
10-24-2005, 08:47 AM
With the first error you just need to define the alt attribute (I had the same problem). just type for example: ... width="548" height="63" alt=""> that should work.

second error: with html 4.01 you'd better use css for these kind of attribute: height, width, align, valign etc. if you don't know about css: http://www.w3schools.com/ is the perfect site!

rhsunderground
10-24-2005, 11:05 AM
the alt="" attribute is in case your image doesn't load. that text will appear in its place. for example, if you had a picture of a lion, you would put something like alt="Picture of a Male Asiatic Lion, Extinct 10,000 B.C." so that your guests have some idea of what's going on.

the tree
10-25-2005, 06:19 AM
the alt="" attribute is in case your image doesn't load. that text will appear in its place. for example, if you had a picture of a lion, you would put something like alt="Picture of a Male Asiatic Lion, Extinct 10,000 B.C." so that your guests have some idea of what's going on.Alt is also for non-graphical browsers. So the alt atribute should fit in with your text as if there weren't an image.<h3><img src="lion.jpg" alt="Asiatic Lion"></h3>
<p>The Asiatic Lion became extinct around 10000 <abbr title="Before Christ">BC</abbr></p>Of course if you can't think of one then an empty alt attribute doesn't do much harm.

Charles
10-25-2005, 08:07 AM
From the HTML 4.01 Specification:alt = text [CS]
For user agents that cannot display images, forms, or applets, this attribute specifies alternate text. The language of the alternate text is specified by the lang attribute.

Several non-textual elements (IMG, AREA, APPLET, and INPUT) let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc.

The alt attribute must be specified for the IMG and AREA elements. It is optional for the INPUT and APPLET elements.

While alternate text may be very helpful, it must be handled with care. Authors should observe the following guidelines:

* Do not specify irrelevant alternate text when including images intended to format a page, for instance, alt="red ball" would be inappropriate for an image that adds a red ball for decorating a heading or paragraph. In such cases, the alternate text should be the empty string (""). Authors are in any case advised to avoid using images to format pages; style sheets should be used instead.

* Do not specify meaningless alternate text (e.g., "dummy text"). Not only will this frustrate users, it will slow down user agents that must convert text to speech or braille output.