Answers for "css display title attribute"

2

title attribute in html

## DISPLAY TOOLTIP IF LINK IS HOVER
<a href="youtube link" title="My Youtube Channel">Youtube</a>

NOTE: CAN ALSO BE USED IN DIFFERENT HTML TAGS
Posted by: Guest on April-30-2022
0

Title attribute

/* title attribute */
/* you can use title attribute in: image, elements, or inputs etc. */
/* you can also use title attribute in a parent element then all of its childrens and grandChildren will inherit it. It called ancestor title attribute */
/* example below is a parent title attribute or ancestor */
<div title="CoolTip">
  <p>Hovering here will show "CoolTip".</p>
  <p title="">Hovering here will show nothing.</p> /* you can use title="" so that this children will be exempted from its parent with a title attribute */
</div>
Posted by: Guest on April-30-2022

Browse Popular Code Answers by Language