HTML - attributes - title

revision:


Content

"title" attribute : specifies extra information about an element syntax some examples


"title" attribute : specifies extra information about an element

top

The title attribute specifies extra information about an element. The information is most often shown as a tooltip text when the mouse moves over the element.

The title attribute can be used on any HTML element (it will validate on any HTML element. However, it is not necessarily useful).


syntax

top

<element title="text"></element>

text: a tooltip text for an element.


some examples

top

WHO was founded in 1948.

Click to visit home page.
codes:
                    <p class="spec"><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
                    <a style="margin-left:3vw;" href="https://www.lwitters.com/coding.php" title="my coding webpage"
                    >Click to visit home page.</a>
                
codes:
                    <img src="../../pics/vangogh.jpg" title="Vincent van Gogh">