SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28
  1. #26
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by AlexDawson View Post
    I would say the title attribute should be required for anchor links, it gives people an idea of what they will find behind each hyperlink if they choose to click (beyond the basic information given in the link text), it has some obvious benefits for accessibility.
    I disagree. Very often, the link text and surrounding content can give a complete and accurate description of the link destination. Only when that isn't possible or ideal should link text be used.

    Often, link titles simply repeat or flesh out the link text. eg
    <a href="about.htm" title="Click here to find out more about our company">About us</a>
    doesn't actually give any more information or indication to a visitor than
    <a href="about.htm">About us</a>

    Given that a high proportion of visitors won't look for/at link titles, if you put anything essential in the title, all you are doing is hiding it from people.

    As for improving accessibility, I don't know that it has any significant benefits. Keyboard navigation generally won't display any title attribute text. Screen readers may or may not read it. People with restricted vision may find it difficult or confusing to have a tooltip appear, especially if it has a lot of text in it.

    I'm not saying that you shouldn't use the title attribute on links - there are times when it is very helpful to do that - but I really don't think that it is more than a significant minority of times at most.

  2. #27
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I agree, 'About Us' tells someone all they need to know about what is on the page. 'Information about the company' or something doesn't give any more information, it's redundant, and if I was a screen reader user, I'd probably get bored and annoyed with every link effectively read out twice.

  3. #28
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,870
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The greatest use for the title attribute should be on images where you need title="" to correct for the bug in IE6.

    Title attributes used elsewhere should only be used where they provide meaningful information (eg. on an <acronym> or <abbr> tag where it can be used to tell people what the acronym or abbreviation means - for example <abbr title="IBM abbreviation for air movement device more commonly known as a fan">AMD</abbr> )
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •