Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Just wondering about <title> tags

Status
Not open for further replies.

UncleMortis

Programmer
Jan 28, 2003
120
AU
I picked up a html pocket book the other day and it's telling me that I can whack a title into other tags like <a href's> etc, so that when you mouse over it it gives a little tool tip type message. In the 2 years since I've learned html, I've never seen it in any of the books I've read, and the only time I've seen anything like it is as an alt tag in an img. Is it a depreciated tag or is it still in use in 4.01?
 
No, it's not depricated and is a perfectly valid attribute for nearly all HTML elements under the 4.01 standard.

The behaviour you describe (acting like alt text on an image) is the way in which I've used it in the past. I particularly like using it on buttons to give the user a further idea of what the button does without taking up screen real estate:

[tt]<input type=&quot;submit&quot; value=&quot;submit&quot; title=&quot;Click this button to submit the completed form.&quot; />[/tt]
 
Yes, I've just put them into a site I'm playing with and they look good. I just can't believe that in 2 years of learning and using html, I've never come across them in a book. Thanks for the comments everyone.
 
on a side note, if you want to use the correct lingo for this - I think you would call them title attributes.
Code:
<html>
<head>
<title>[title] tag</title>
</head>
<body>
<a href=&quot;elsewhere.html&quot; title=&quot;to some other page&quot;>[a] tag with title attribute</a>
</body>
</html>
Then again, it's not the end of the world to mix the two up! [smilejap]


Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Admittedly, when I first saw the thread heading I thought &quot;What could possibly need to be explained about title tags?&quot;.

Title attributes on the other hand... ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top