12 replies [Last post]
Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 12 years 25 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

I'm putting together another site that has banners of others sites to link to them.

I'm to a point when i'm just repeating myself with the title tag and the alt tag. In this situation, should i continue using both? or should i just use title?

Also, would google punish the page rank by finding repetitions in such a way?

Any help is appreciated.

Thanks as always guys,

Dan.

I am Dan, Dan I am.

Tags:
technossomy
technossomy's picture
Offline
Enthusiast
Last seen: 6 years 2 weeks ago
Timezone: GMT+1
Joined: 2004-06-09
Posts: 260
Points: 8

Image Links - title or alt?

Adding alt's to your images is always a good idea whether they have a link or not. A text-based browser, such as lynx, will then still have some data to show. In fact, it is a W3C recommendation.

Generally title-tags are a pain. They were probably added to distinguish large blocks of HTML content in a page, such as tables or assembled images. Authorative sources on HTML coding are brief about title tags and mention they belong in the HEAD section only:
http://www.htmlhelp.com/reference/html40/head/title.html

Hope this helps

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Image Links - title or alt?

Hi Fruitcake,
Think about a screen reader repeating the same pointless information over and over again it would turn most people off visiting the site via screen reader.

To validate images need to have an alt tag so you should use alt="" unless you can have the images as background images.
I think the title attribute is only recommended for use and not required for validation though this would probably depend on the level of validation.
So leave the title out if you can't have something descriptive.

technossomy, I think you are confusing the <title> tag which should only be in the head with the title attribute commonly used in links and other tags eg <a href="#" title="this is a short description of the link"> link </a>
Hope that helps

Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 12 years 25 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

Image Links - title or alt?

That would be an error on my part :oops:

Quote:
I'm to a point when i'm just repeating myself with the title tag and the alt tag.

I mistakingly said title tag instead of title attribute.

Sorry for the confusion but thanks for your help.

I am Dan, Dan I am.

neelyakeirma
Offline
newbie
Last seen: 15 years 47 weeks ago
Joined: 2004-10-29
Posts: 9
Points: 0

Image Links - title or alt?

Actually, I've heard (haven't personally verified it) that if you just use alt="" and don't have anything within the quotes, that some screen readers will read the image's file location & name, which would get extremely confusing.

So if the image is just used for design and the content of the image isn't absolutely necessary, then it's best to use alt=" ".

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 8 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

Image Links - title or alt?

My understanding is that you should always give the alt tag some content, even if it's just 'spacer image' or 'decorative image'.

Life's a b*tch and then you die!

Alan
Offline
Enthusiast
Last seen: 16 years 48 weeks ago
Joined: 2003-10-20
Posts: 72
Points: 0

Image Links - title or alt?

Here's what Jakob Neilsen has to say about Link Titles:

- Link titles are a short, pop up explanation of a link.
- Link titles can give users a preview of where the link will lead.
- When users do decide to follow a link, after reading what it is, they will be faster at understanding the destination page upon arrival.
- Disorientation is reduced.
- The goal of the link title is to help users to predict what will happen if they follow a link.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Image Links - title or alt?

Here's a couple of links that help explain the difference and use of ALT and TITLE attributes.
http://www.gawds.org/show.php?contentid=28
http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 8 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

Image Links - title or alt?

Good links - thanks Tony Smile

Life's a b*tch and then you die!

capmexbiz
Offline
Regular
Last seen: 15 years 51 weeks ago
Joined: 2004-09-29
Posts: 14
Points: 0

Image Links - title or alt?

Since you're using both elements, link and img, is ok and a good practice to have the title attribute for the link and the alt attribute for the image. With newer doctypes these attributes are required in order to validate your page.

Search engines could penalize you if you stuff keywords on these attributes or if you, exaggeratedly, repeat the same title for different links or the alt attribute for different images.

Webmaster Resources for Business Websites

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Image Links - title or alt?

Hi capmexbiz,
Title and alt should be different.
Alt is meant as an alternative to the image, so it should simply explain what the image is in the case that it can't be viewed.
Title can be used to add descriptive text to elements such as links.
eg. If it's not clear where a link will take you from the link text or image the title will be very helpful.

Repeating the link text as the title is pointless and may cause more harm then good.
It's possible that search engines could penalize you if you abuse the use of these items.
I have not seen proof either way but believe it's common knowledge that words repeated too often on the page loose weight in search ranking just as links repeated too many times do.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 26 weeks 5 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

Image Links - title or alt?

Quote:
Title can be used to add descriptive text to elements such as links.
eg. If it's not clear where a link will take you from the link text or image the title will be very helpful.

Example:

<a href="contact.html" title="contact">Contact</a>

(bad)

<a href="contact.html" title="Contact Us Direct">Contact</a>

(good)

Verschwindende wrote:
  • CSS doesn't make pies

Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 12 years 25 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

Image Links - title or alt?

Awesome links Tony.

And thanks for your help everyone it really cleared it up Laughing out loud

I am Dan, Dan I am.