head ... ⁄head
HTML5 head element
The head element acts like a container. The following HTML5 elements can be found inside it: meta, base, title, link, style, script, noscript, template »video
About head
Display & support head
- display in browser » video
- display: none





Parents, children head
- head nested within elements »head parents
- elements nested within head »head children
»examples
Attributes head
- required: none
- optional: global attributes, event attributes
Syntax head
1 2 3 4 | <> ... <⁄> <> ... ... <⁄> ... » examples |
Attributes and Values head (comma separated)
< | attribute | = | "attribute_value(s)" | > | Video | Examples |
---|---|---|---|---|---|---|
1. specific attributes | ||||||
All Specific Attributes | ||||||
2. global attributes | ||||||
1. | accesskey | = | keyboard key | »img | ||
2. | class | = | class name | »html »img | ||
3. | contenteditable | = | "", , true, false | »html | ||
4. | contextmenu | = | menu id value | »html | ||
5. | data-* | = | value | - | ||
6. | dir | = | ltr, rtl, auto | »html | ||
7. | draggable | = | true, , false | »img | ||
8. | dropzone | = | copy, move, link, string:, file: | - | ||
9. | hidden | = | "", , hidden | »html »img | ||
10. | id | = | id name | »html »img | ||
11. | itemid | = | URL | - | ||
12. | itemprop | = | string | »link »a | ||
13. | itemref | = | string | - | ||
14. | itemscope | = | "", , itemscope | - | ||
15. | itemtype | = | absolute URL | - | ||
16. | lang | = | language code | »html »head»title »img | <lang="en"> ... </ > | |
17. | spellcheck | = | "", , true, false | »html | ||
18. | style | = | CSS property:value | »html »img | ||
19. | tabindex | = | integer | »img | ||
20. | title | = | text | »html »link»style »abbr»dfn »img »meter | ||
21. | translate | = | "", yes, no | »html »img | ||
All Global Attributes | ||||||
3. global event attributes | ||||||
1. | onclick | = | script | » list | <element onclick="script" > ... | |
2. | ondblclick | = | script | » list | <element ondblclick="script" > ... | |
All Event Attributes |
Video demonstration head element
HTML5 head element, Tutorial
min | video details |
---|---|
00:06 | the head element acts like a container |
00:21 | the following HTML5 elements can be found inside it: meta, title, base, link, style, script, noscript, template |
00:34 | all these elements classified as metadata content represent introductory elements for the HTML5 page |
00:41 | Introductory Aspects: - the look of the page, - its behaviour, - its relationship with other documents, - the title of the page, - metadata aspects (page encoding, description, keywords)... all can be set up ⁄ specified ⁄ defined using these elements |
00:48 | the head element is the container for the introductory elements of the page, elements classified as metadata content |