Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between title attribute and tooltip attribute?

Tags:

html

xhtml

What's the difference between title attribute and tooltip attribute? when should we use each?

like image 809
raja kumar Avatar asked Mar 31 '15 06:03

raja kumar


1 Answers

Title attribute provides the title of a particular image, text etc. only when the cursor is moved to the respective text or image. Whereas there is nothing known as a tool-tip attribute, a title attribute is a tool-tip which points to the title only when the cursor highlights the text. Although there is another thing as a title tag, which provides the title to a web page which is displayed in the title bar.

like image 128
ashmeesh chowdhery Avatar answered Sep 16 '22 21:09

ashmeesh chowdhery