The <img> alt Attribute not displaying. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    The <img> alt Attribute not displaying.

    roCrox
    roCrox
    Forumember


    Male Posts : 83
    Reputation : 20
    Language : English

    Solved The <img> alt Attribute not displaying.

    Post by roCrox March 26th 2015, 2:32 pm

    Is the alt="Thanks!" placement wrong?

    viewtopic_body
    Phbb2

    Code:
    <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}"><img src="http://i47.servimg.com/u/f47/11/77/85/44/thanks10.gif"
    style="filter:alpha(opacity=100); opacity: 0.5;"
    onmouseover="this.style.opacity='1';
    this.filters.alpha.opacity='100';"
    onmouseout="this.style.opacity='0.5';
    this.filters.alpha.opacity='100'" alt="Thanks!"/></a></div>


    Last edited by roCrox on March 26th 2015, 6:44 pm; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: The <img> alt Attribute not displaying.

    Post by Ange Tuteur March 26th 2015, 4:07 pm

    The ALT attribute contents will only display if the image is unable to load, broken, or there's not a SRC attribute. Are you trying to display a tooltip ? If so, add title="Thanks!" instead
    roCrox
    roCrox
    Forumember


    Male Posts : 83
    Reputation : 20
    Language : English

    Solved Re: The <img> alt Attribute not displaying.

    Post by roCrox March 26th 2015, 6:42 pm

    Ange Tuteur wrote:The ALT attribute contents will only display if the image is unable to load, broken, or there's not a SRC attribute. Are you trying to display a tooltip ? If so, add title="Thanks!" instead

    Aaah, thanks for explanation I didn't realize the proper usage before and was not aware of title attribute.
    Well this is solved - it works.

    Thanks again Ange Tuteur.

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: The <img> alt Attribute not displaying.

    Post by SLGray March 27th 2015, 3:57 am

    Topic solved and archived



    The <img> alt Attribute not displaying. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.