Jump to content

The "title" attribute in anchor elements


Glom

Recommended Posts

I've seen code like this for a link.

<a title="click for home" href="http://northsea.bpweb.bp.com/Northsea/homepage.asp">Home</a>

This "title" attribute is interesting. It seems like the alt attribute for images, giving a little popup description when you place the cursor over it. Is that attribute still valid?

Link to comment
Share on other sites

This "title" attribute is interesting. It seems like the alt attribute for images, giving a little popup description when you place the cursor over it.
You should be using title for that little pop up message, that includes images.Alt is used as an alternative text to be displayed when the image fails to load, for some reason Internet Explorer also uses the alt text as a pop up message, no other browser does this. :) If you specify both the alt and title as an image attribute the the title takes priority in the pop up message :)
That's good. It seems to be missing from the w3schools references.
It is there, you just have to look for it.See this page: http://www.w3schools.com/tags/tag_select.aspIf you scroll halfway down you will see a list of Standard Attributes for this tag, these are
id, class, title, style, dir, lang, xml:lang, accesskey, tabindex

Similar information is available on all tags

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...