SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: new to html

  1. #1
    Non-Member
    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi all
    I am new to html.
    I have the question
    Why i am use Alt tag in html ??????

  2. #2
    SitePoint Member
    Join Date
    Feb 2010
    Location
    Croydon, UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The alt attribute of the img tag is designed to display a descriptive piece of text about the image.

    It's use is for those who may be visually impaired and use a screen reader or simply those who choose to browse the web in a text based browser such a Lynx.

  3. #3
    Non-Member
    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Will89 View Post
    The alt attribute of the img tag is designed to display a descriptive piece of text about the image.

    It's use is for those who may be visually impaired and use a screen reader or simply those who choose to browse the web in a text based browser such a Lynx.
    Hi Dear

    Thanks for the answer.

  4. #4
    SitePoint Member fodego's Avatar
    Join Date
    Jul 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And the alt-Tag is used for SEO issues, not to forget about this...

  5. #5
    SitePoint Member
    Join Date
    May 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Firstly I'll inform you that it's an attribute of any tag and it's play an important role for URL Link where visitor see the extra information like that

    <a href="URL" alt="Visit My site">Example</a>

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,035
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by sandeepji View Post
    Firstly I'll inform you that it's an attribute of any tag and it's play an important role for URL Link where visitor see the extra information like that

    <a href="URL" alt="Visit My site">Example</a>
    Any tag? AFAIK it's for img and area tags, NOT anchor tags. Perhaps you're confusing it with the title attribute?

  7. #7
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,216
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by fodego View Post
    And the alt-Tag is used for SEO issues, not to forget about this...
    actually, it would be a lot better if everybody ~did~ forget about that

    the alt attribute is intended to provide a textual description when an image cannot be shown

    the fact that it is often larded with seo crap is unfortunate and to be regretted
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


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
  •