homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Adding ALT TAG to text in HTML
Need to add "alt" text to text in page

 1:04 pm on Oct 25, 2006 (gmt 0)

How can I add "Alt Tags" to text.
Easy to do to images but can't figure it out on text.
As always thanks in advance!




 1:09 pm on Oct 25, 2006 (gmt 0)

<a title="keyword phrase" href="/keyword-phrase/">Keyword Phrase</a>

hope that helps...


 2:31 pm on Oct 25, 2006 (gmt 0)

Without intentionally picking on you, let's set a few things straight:

  • There are no "alt tags". It's an "attribute".
  • You cannot add alternative content to text, as the alt attribute is not available for textual content.
  • The alt attribute should not be used to convey information you want in a tooltip. It should be used to provide a brief alternate textual description of the image in the event the image does not load.
  • For tooltips on any element, including images, use the title attribute.
  • IE incorrectly displays the alt content as a tooltip if there is no title attribute present.
  • Make a habit of using the title attribute whenever you do want a tooltip. Even IE handles that right.


  • Global Options:
     top home search open messages active posts  

    Home / Forums Index / Code, Content, and Presentation / HTML
    rss feed

    All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
    Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
    WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
    © Webmaster World 1996-2014 all rights reserved