dfn title attribute
The title attribute on the dfn element:
- → allows you to add the defined term
- if title attribute is on abbr element inside a dfn, then it allows you to add the extended form of the abbreviation ⁄ acronym
- is a global attribute → can be applied on all html elements but the semantic in that case is different (= allows you to add advisory information for an element);
Examples
<dfn | attribute | = | "value(s)" | > | ... | <⁄dfn> | Examples |
---|---|---|---|---|---|---|---|
20. | title | = | text | <title="Internet Protocol"> IP <⁄ > |
Video demonstration dfn title attribute
HTML5 dfn title attribute Tutorial
min | video details |
---|---|
00:00 | video tutorial: title attribute on dfn element |
00:05 | the value of the title attribute on dfn element represents the term that is being defined |
00:11 | for example, if we are defining the IP term, then the title of the defined term can be "Internet Protocol" |
00:23 | browser display: at mouse over the defined term (IP), the value of the title attribute (Internet Protocol) displays |