meter title attribute
The title attribute on the meter element:
- → allows you to specify the unit measure of the measured value, which represents the result of a scalar measurement
- 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
<meter | attribute | = | "value(s)" | > | ... | <⁄meter> | Examples |
---|---|---|---|---|---|---|---|
20. | title | = | text | <title="votes" max="60" value="45"> ... <⁄ > |
Video demonstration meter title attribute
HTML5 meter title attribute Tutorial
min | video details |
---|---|
00:00 | video tutorial: title attribute on meter element |
00:04 | the title attribute on meter allows you to specify the unit measure attached to the number that represents the result of the scalar measurement |
00:15 | the candidate X was re-elected with a majority of 45 votes! where: '45' represents the number, the result of the scalar measurement 'votes' represents the unit measure attached to the number and can be specified as value of the title attribute |
00:24 | adding the title attribute to the meter element and 'votes' as value, representing the unit measure |