Name and alt attribute

Discussion in 'HTML & Website Design' started by Ovlznvvz, Jul 30, 2011.

  1. #1
    what is the difference between name and alt attribute in img tag. and can we use these two attribute together in img tag?

    Thanks
     
    Ovlznvvz, Jul 30, 2011 IP
  2. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #2
    alt tag - if you mouse over the image it shows the alt tag

    name tag - its for calling.
     
    karthimx, Jul 30, 2011 IP
  3. rahulparekh

    rahulparekh Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Most browsers don't show the alt tags on mouseover now. It's just an alternative text which is displayed if a browser can't display images.
     
    rahulparekh, Jul 30, 2011 IP
  4. rahul.katariya

    rahul.katariya Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Title tag is used to display information at mouseover. Alt tag is an alternative text which is displayed when the image is broken and alt tag is indexed by search engines.
     
    rahul.katariya, Jul 30, 2011 IP