Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

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)

New User

10+ Year Member

joined:Apr 16, 2004
votes: 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)

Preferred Member

10+ Year Member

joined:July 14, 2004
votes: 6

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

hope that helps...

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

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
votes: 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
    attribute is not available for textual content.
  • The
    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
  • IE incorrectly displays the
    content as a tooltip if there is no
    attribute present.
  • Make a habit of using the
    attribute whenever you do want a tooltip. Even IE handles that right.



    Join The Conversation

    Moderators and Top Contributors

    Hot Threads This Week

    Featured Threads

    Free SEO Tools

    Hire Expert Members