Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > alt tag for an anchor link?

Reply
Thread Tools

alt tag for an anchor link?

 
 
Paul Furman
Guest
Posts: n/a
 
      02-12-2004
There is no such thing right?

<a href="thispage.htm" alt="this page">click here</a>

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      02-12-2004
Paul Furman wrote:

> There is no such thing right?
>
> <a href="thispage.htm" alt="this page">click here</a>


Text to display in the event that the link can't be displayed? No, there
isn't - it wouldn't make sense.

Of course, you probably don't understand what alt is really all about, and
what you really want to do is entirely achievable.

Have a read of http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html

--
David Dorward <http://dorward.me.uk/>
 
Reply With Quote
 
 
 
 
Andreas Prilop
Guest
Posts: n/a
 
      02-12-2004
Paul Furman <(E-Mail Removed)> wrote:

> <a href="thispage.htm" alt="this page">click here</a>


"Click here" is bullshit anyway.
<http://www.w3.org/QA/Tips/noClickHere>

So write <a href="thispage.html">this page</a> or
<a href="thispage.html" title="that page">this page</a>
with the TITLE attribute.

--
Top-posting.
What's the most irritating thing on Usenet?
 
Reply With Quote
 
Inger Helene Falch-Jacobsen
Guest
Posts: n/a
 
      02-12-2004
Paul Furman wrote:
> There is no such thing right?
>
> <a href="thispage.htm" alt="this page">click here</a>


Guess you are thinking about "title":
<a href="thispage.htm" title="this page">click here</a>

--
Inger Helene Falch-Jacobsen
http://home.online.no/~ingerfaj/



 
Reply With Quote
 
GD
Guest
Posts: n/a
 
      02-12-2004
Paul Furman <(E-Mail Removed)> wrote:
> There is no such thing right?
> <a href="thispage.htm" alt="this page">click here</a>


No, and you shouldn't be using the alt attribute for what you're doing
with images! The TITLE attribute is for displaying tooltips, it's wrong
that MSIE shows you the alt text like this. Other browsers like Mozilla
and Opera will not show users the alt text when they hover over the
image.

Also, don't use 'click here' as link text! Use something more
sensible/meaningful.

<img
src="file.gif"
alt="This is meaningful alternative text for when the image isn't displayed"
title="This is complimentary text that the user (usually) sees in a tooltip"
>


Thank goodness for <a href="http://www.w3.org/" title="The W3C website,
part of the MSN network&trade;">web standards</a>!


The above examples will display text when you hover and still make sense
to everyone from blind users to people with modern standards-orientated
browsers

 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      02-12-2004
Andreas Prilop wrote:

> Paul Furman <(E-Mail Removed)> wrote:
>
>> <a href="thispage.htm" alt="this page">click here</a>

>
> "Click here" is bullshit anyway.
> <http://www.w3.org/QA/Tips/noClickHere>
>
> So write <a href="thispage.html">this page</a>


I think "this page" is almost as bad as "click here".

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Paul Furman
Guest
Posts: n/a
 
      02-12-2004
David Dorward wrote:
>
> Of course, you probably don't understand what alt is really all about, and
> what you really want to do is entirely achievable.
>
> Have a read of http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html



I understand alt as substitute text for when the image doesn't display.

Is [title="Joe's page"] incorrect, as a tool-tip generator?

 
Reply With Quote
 
Paul Furman
Guest
Posts: n/a
 
      02-12-2004
Andreas Prilop wrote:
>
> "Click here" is bullshit anyway.
> <http://www.w3.org/QA/Tips/noClickHere>
>
> So write <a href="thispage.html">this page</a> or
> <a href="thispage.html" title="that page">this page</a>
> with the TITLE attribute.


Great thanks!
So many basic things I don't know.

The "click here" was just for demonstration but that's a good
explanation of a more logical syntax.

 
Reply With Quote
 
Augustus
Guest
Posts: n/a
 
      02-12-2004

"Paul Furman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> There is no such thing right?
>
> <a href="thispage.htm" alt="this page">click here</a>


you want to use TITLE instead of ALT



 
Reply With Quote
 
Andreas Prilop
Guest
Posts: n/a
 
      02-12-2004
Toby A Inkster <(E-Mail Removed)> wrote:

>> So write <a href="thispage.html">this page</a>

>
> I think "this page" is almost as bad as "click here".


If you take "this page" literally, of course! You snipped away my
title="that page", which is nonsense also when taken literally.

I assumed that you substitute *real expressions* for the dummy
"thispage.html", "this page", "that page" - for example:

<a href="http://www.unics.uni-hannover.de/nhtcapri/arabic-alphabet.html6"
title="The Infidel's Guide to The Arabic Alphabet"
charset="ISO-8859-6">The Arabic Alphabet</a>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
alt.autos.porsche928,rec.humor.oracle.d,alt.balordi.it,alt.computer,sci.med.laboratory . Computer Information 1 06-18-2004 08:44 AM



Advertisments