SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    USA
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alt Tag for Image Dividers

    I want to use an image as a section divider on my webpage. However, if I want to be W3C compliant, all images need the alt tag. Anyone have any recommendations on what I should put?

    Currently, I'm using "*************".

    Thanks.

    BaenSidhe

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ummm... alt="Divider" ?
    Aaron Brazell
    Technosailor



  3. #3
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd use "|". Also, it's an alt attribute, not tag.

    Keep in mind that you're allowed empty alt attributes. If it's empty, screen readers (the real reason we're doing alt attributes) will ignore the image as insignificant, which is ultimately what you want.

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Set the divider as a background image so you don't need an alt. It's there for decoration so it should really be in your CSS, not your HTML.

  5. #5
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by someonewhois
    If it's empty, screen readers (the real reason we're doing alt attributes) will ignore the image as insignificant, which is ultimately what you want.
    Alt text is not only for screen reader users. It's for anyone who for some reason can't or won't access the image. That includes search engines.
    Simon Pieters


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
  •