dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: where can the alt tag can be used

  1. #1
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    1,381

    where can the alt tag can be used

    except from the <img>?
    10X
    peleg

  2. #2
    Join Date
    Feb 2003
    Posts
    98
    with the <a> tag you can use title which produces the same effect.


    <a href=# title="test">link</a>

    Gaz.

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    There isn't supposed to be an effect with the "alt" attribute (http://www.w3.org/TR/html401/struct/....html#adef-alt), except when an image cannot be displayd. Then the attribute supplies some text that will be presented to the user in the images stead. It's an important accessibility feature and you need to be careful how you use it. If you want a "tool tip" then use the "title" attribute (http://www.w3.org/TR/html401/struct/...tml#adef-title), which you can with "[a]ll elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, TITLE".
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    1,381

    10x alot!

    israel is 56 years young and will be here for ever

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