SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member 1988sonya's Avatar
    Join Date
    Sep 2011
    Location
    gandhinagar
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to optimize of photographic images???

    I know anchor text and ALT tag. But how to create ALT Tag??? and other tricks please share it.

  2. #2
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For create an ALT tag you just put alt="keyword" in the img balise (ex: <img src="way-of-your-picture.jpg" alt="keyword"> )

  3. #3
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,438
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    From memory IE uses alt for the "tool tip" and Firefox uses title; do not forget the image size either:
    PHP Code:
    <img src="image.jpg" width="200" height="200" alt="A nice image" title="A nice image"
    If using php you can populate the alt tag with the image name and automaticaly create the width and height information as well as get some info from a database or text file if it is stored there.

  4. #4
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    6,448
    Mentioned
    274 Post(s)
    Tagged
    5 Thread(s)
    Quote Originally Posted by tabbos View Post
    For create an ALT tag you just put alt="keyword" in the img balise (ex: <img src="way-of-your-picture.jpg" alt="keyword"> )
    The purpose of the alt text is to provide an alternative for people unable to see the image, not to stuff keywords for SEO. If a keyword is appropriate for the alt text, then by all means use it, but remember the point is to convey the meaning of the picture for a blind person using a screen reader, someone with images disabled, etc.


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
  •