How title attribute works?

Bờm

Member
How title attribute works?
A. Displays text when hovering over the element
B. Focus text when hovering over the element
C. Highlight text when hovering over the element
D. Zoom in and zoom out text when hovering over the element
 
Answer: a
Explanation: the title is a global attribute that displays text in a tooltip when hovered over the element. Syntax is:
Code:
<p><abbr title=”Indian Association Service”>IAS</abbr> is India’s one of the most difficult job.</p>
Output: IAS is India’s one of the most difficult job.
 

Tìm kiếm

Back
Top