img title attribute
The title attribute on the img element:
- → allows you to add advisory information for an image embedded in page through img tag
- is a global attribute → can be applied on all html elements;
- when applied on the root element <html>, its value is inherited by all other html elements
Examples
<img | attribute | = | "value(s)" | > | Examples | ||
---|---|---|---|---|---|---|---|
20. | title | = | text | <src=".." alt="alt text " title="advisory info for the image "> |
Video demonstration img title attribute
HTML5 img title attribute Tutorial
min | video details |
---|---|
00:05 | video tutorial: title attribute on img |
00:09 | the title attribute on img allows you to add advisory information for the embedded image |
00:18 | let's add advisory information for this image |
00:42 | the advisory information displays when hovering the mouse over the 3rd image |