html title attribute
The title attribute on the html element:
- → allows you to add advisory information for an element
- 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
<html | attribute | = | "value(s)" | > | ... | <⁄html> | example |
---|---|---|---|---|---|---|---|
20. | title | = | text | <title="w3-video.com: title demo page"> ... <⁄ > "w3-video.com: title demo page" = represents our choice for your web page you will make your own choice |
Video demonstration html title attribute
HTML5 html title attribute Tutorial
min | video details |
---|---|
00:02 | launch "title.php" file in browser |
00:06 | open "title.php" file in Notepad++ |
00:11 | the value of the title attribute: type text |
00:15 | title attribute, value: text , applied on html starting tag |
00:26 | saving the modifications in Notepad++ and refreshing the file in browser |
00:28 | testing: <html title="w3-video.com"> |
00:29 | result: when hovering over the page, the value (type text) of the title attribute displays |