www.webdeveloper.com
Results 1 to 4 of 4

Thread: abbr, links and table headers

  1. #1
    Join Date
    Dec 2003
    Location
    Ottawa, Ontario, Canada
    Posts
    134

    abbr, links and table headers

    What is the best solution for abbr and links? Should the abbr be outside the link? Or inside the link?

    Code:
    Outside:
    <tr>
    <th><abbr title="Minutes Played"><a href="?sort=mp">MP</a></abbr></th>
    </tr>
     
    vs.
    
    Inside:
    <tr>
    <th><a href="?sort=mp"><abbr title="Minutes Played">MP</abbr></a></th>
    </tr>

  2. #2
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    I put the <abbr> inside the <a>, since the <abbr> is saying that the text inside the <a> is an abbreviation, not that the <a> and the text inside it is an abbreviation.
    Last edited by Kravvitz; 12-20-2005 at 02:25 AM.

  3. #3
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    I do inside also

  4. #4
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    You always place it next/touching to the abbr. word, for example <abbr>IBM</abbr> and not anywhere else.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles