Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    North of Boston
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    NS6 image alt property

    Does anybody know why the image alt
    property doesn't work in NS6?


    Thanks
    bedardinc.com
    A+,Network+, MCP W2K
    Sites I have worked on
    patriotsweekly.com
    smileysbookstore.com

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cause Netscape is trash.... oh wait, sorry, that wasn't the technical answer...

    Actually I dont' know why either... if anyone does, I'd like to know too!

    ~Quack

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    North of Boston
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do know it works in Mozillla.
    But what average web user is going to know that? or even care to download it.
    Or even heard of it.

    Now tell me that one.
    bedardinc.com
    A+,Network+, MCP W2K
    Sites I have worked on
    patriotsweekly.com
    smileysbookstore.com

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    How about, because it isn't supposed to, and the widely known use of it is in fact, INCORRECT?

    The alt property specifies alternate text to display in place of the image if:
    1. The image cannot be displayed
    2. The browser does not support images

    The proper way to get the "tooltip" popup is to the use the "title" property.

    <img src="logo.gif" width="468" height="60" alt="Site logo" title="Welcome to Something.com!"/>

    Is an example of what the <img/> tag is supposed to be like.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does title work in NS4?

  • #6
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    No. The current workaround is either ignore old browsers, or set the alt and title attributes to be the same, though that could be killer for accessibility concerns.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Gecko based browser (of which Netscape is only one) use the title property which is the correct property for this use as defined by the W3C. IE 4+ will also use the title property when present but also support the use of alt (title when present takes precedence over alt). Netscape 4 requires the use of alt for such text.

  • #8
    New Coder
    Join Date
    Jun 2002
    Location
    behind you
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ALT's are still a required attribute for valid XHTML, right?

    (been out of this for a while :P)
    ~Kang He
    Prepare to be b0rkified.

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Kang He
    ALT's are still a required attribute for valid XHTML, right?

    (been out of this for a while :P)
    alts' are required for disability compliance. Their purpose is to provide alternative information for someone who can't see a visual element like an image.

  • #10
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    In other words, alt is a required attribute of an HTMLImageElement.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •