SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2002
    Posts
    2,322
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    alt atrribute on both img and area :/

    i'm using a logo image which is going to be also as a button/link. the logo is not rectangular shaped so i've done an image map so that only the logo part of the image can act as the link.

    you're supposed to include an alt attribute with img and area tags. should i just repeat the same alt text for each alt atrribute like the following, or do something else? seems a bit silly to repeat the same alt info.
    Code:
    <img src="logo.gif" width="230" height="87" alt="The Logo which looks lovely" usemap="#logo_map" />
    <map name="logo_map" id="logo_map">
    <area shape="poly" alt="The Logo which looks lovely" coords="30,32, 30,0, 181,0, 181,20, 198,20, 198,33, 230,33, 230,55, 200,55, 199,87, 28,87, 28,57, 0,57, 0,32" href="#" />
    </map>
    thanks.

  2. #2
    Who is Mr Blonde? Mr Blonde's Avatar
    Join Date
    Sep 2006
    Location
    Gold Coast, QLD
    Posts
    359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe be more specific on the link with an alt like "Return to *company* Home Page", or something similar?
    Heavens Rejects : Online Clothing Store
    Alternative Clothing : Mr Blonde
    Front end development : By the Webfella

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mr Blonde View Post
    maybe be more specific on the link with an alt like "Return to *company* Home Page", or something similar?
    Indeed, and empty alt="" on the <img>.
    Simon Pieters

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It all depends on what you want people to see or hear that can't see the images.
    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="^$">

  5. #5
    SitePoint Wizard
    Join Date
    Apr 2002
    Posts
    2,322
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    i see. ok thanks.


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
  •