473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

use of alt & title for images, and image links

Even after comments in another thread by Alan J. Flavell,
I'm not sure I have this straight in my head, so any comments
or corrections are welcome :-)

If I have:
<p>
The quick brown fox jumped over the lazy dog.
</p>
and I change it to:
<p>
The quick <a href="fox.jpg">brown fox</a> jumped over the lazy dog.
</p>
I don't change the "brown fox" text, although the 'functionality'
or 'meaning' of the text has changed, in that it is now a link.

Although I have no experience with them, I can imagine a screen reader
reading both sentences the same way, depending on how, or if, links
are "highlighted".

If I have:
<p>
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox">
</p>
that shows a "thumbnail image" of a fox, and I use it
in combination with some text:
<p>
The quick
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox">
jumped over the lazy dog.
</p>
then am I correct in saying that there is no need, in terms of
best practices, to change the alt and/or title text?

If the "thumbnail image" of the fox is also used as a link
to a 'full sized' image of a fox:
<p>
The quick
<a href="foxlarge.jpg">
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox"></a>
jumped over the lazy dog.
</p>
should the alt and/or title text change?

--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website: http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics
Jul 20 '05 #1
5 2730
In article <Xn******************************@24.71.223.159> ,
Dave Patton <dp*****@remove-for-nospam.confluence.org> wrote:
<p>
The quick
<a href="foxlarge.jpg">
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox"></a>
jumped over the lazy dog.
</p>


<p>
The quick
<a href="foxlarge.jpg" title="Larger picture of a brown fox"><img
src="fox.jpg" alt="brown fox"></a>
jumped over the lazy dog
</p>
Jul 20 '05 #2
In article <Xn******************************@24.71.223.159> , one of infinite monkeys
at the keyboard of Dave Patton <dp*****@remove-for-nospam.confluence.org> wrote:
<p>
The quick
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox">
jumped over the lazy dog.
</p>
The title attribute - though harmless - seems superfluous. What does it
tell you that's not clear in the image and the alt?
<p>
The quick
<a href="foxlarge.jpg">
<img src="fox.jpg" width="50" height="50"
alt="brown fox" title="brown fox"></a>
jumped over the lazy dog.
</p>
should the alt and/or title text change?


The title attribute is equally superfluous. But a title attribute to
the <a ...> would now make some sense (it's a title for the resource
you're linking to).

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #3
In article <MP************************@news.CIS.DFN.DE> in
comp.infosystems.www.authoring.html, Jacqui or (maybe) Pete
<po****@spamcop.net> wrote:
ell, I think your examples are correct, and from the lack of response
I'd say that most other people here do too.


I don't think that conclusion is logical. They could also be
uninterested, or fatigued, or unable to articulate exactly what they
don't like.

I'm not saying anything about the particular issue you responded to;
but I think as a general rule it is logically invalid and dangerous
to equate "few or no people voiced disagreement" with "most people
agree".

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
In article <MP************************@news.odyssey.net>,
Stan Brown <th************@fastmail.fm> wrote:
I'm not saying anything about the particular issue you responded to;
but I think as a general rule it is logically invalid and dangerous
to equate "few or no people voiced disagreement" with "most people
agree".


Isn't that how politics work? :P
Jul 20 '05 #5
In article <MP************************@news.odyssey.net>,
th************@fastmail.fm says...
In article <MP************************@news.CIS.DFN.DE> in
comp.infosystems.www.authoring.html, Jacqui or (maybe) Pete
<po****@spamcop.net> wrote:
ell, I think your examples are correct, and from the lack of response
I'd say that most other people here do too.

.... I'm not saying anything about the particular issue you responded to;
but I think as a general rule it is logically invalid and dangerous
to equate "few or no people voiced disagreement" with "most people
agree".

Sure, but given what a popular subject for argument this particular
issue is I figure that silence is at least silver :-)
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
1
by: Jiri Brada | last post by:
Hi, I have got a following problem with using Javascript: I have a HTML page with pictures' thumbnails. After clicking on any thumbnail, I would like to open a new window with the original...
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
14
by: Del Ferguson | last post by:
Group, New to this list. I just found out that FireFox does not display the img alt attribute the same way IE does. I use both browsers to verify that my pages are readable. Dumb me for not...
10
by: David Stone | last post by:
At first glance, alt and title seem to be a bit of a duplication for img tags in html. Are there any _practical_ differences for the html 4 strict doctype? What would be the consequences (if...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: KimberlyM | last post by:
This has been driving me crazy. I hope someone can help. The site displays perfectly in FF but all div's do not show in IE. Please help me find the problem! Thanks! Here is my css. ...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.