W3-Video WEB Tutorials

w3-video.com is a Free eLearning Website with over 500 video tutorials on HTML5, XAMPP, .htaccess, Firefox, Notepad++

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++


head ... ⁄head


Share it

head intro head occurrences head browser display head parents - children head syntaxhead lang attribute

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

Firefox iconChrome iconIE iconOpera iconSafari icon

Parents, children head

Attributes head

Syntax head

1
2
3
4
<head> ... <⁄head>
<head> ...
... <⁄head>
... » examples

Attributes and Values head (comma separated)

<headattribute="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<head lang="en"> ... </head>
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

For more information about the head element, please see the specs: W3CWHATWG