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++

body ... ⁄body

Share it

body intro body occurrences body browser display body parents - children body syntax, optional

HTML5 body element

The body element acts like a container. All these html elements can be found inside it.

About body

Display & support body

Firefox iconChrome iconIE iconOpera iconSafari icon

Parents, children body

Attributes body

Syntax body

<body> ... <⁄body>
<body> ...
... <⁄body>
... » examples

Attributes and Values body (comma separated)

<bodyattribute="attribute_value(s)"> Video Examples
1. specific attributes
All Specific Attributes
2. global attributes
1.accesskey=keyboard key»img<body accesskey="h"> ... </body>
2.class=class name»html »img<body class="class_name"> ... </body>
3.contenteditable="",  , true, false »html<body contenteditable="true"> ... </body>
4.contextmenu=menu id value»html<body contextmenu="menu_id_value"> ... </body>
5.data-*= value -<body data-http-error="404"> ... </body>
6.dir=ltr, rtl, auto»html<body dir="ltr"> ... </body>
7.draggable= true,  , false»img
8.dropzone= copy, move, link, string:, file: -
9.hidden= "",  , hidden»html »img<body hidden="hidden"> ... </body>
10.id=id name»html »img<body id="unique_id_name"> ... </body>
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<body lang="en"> ... </body>
17.spellcheck="",  , true, false»html<body spellcheck="true"> ... </body>
18.style=CSS property:value»html »img<body style="color:red"> ... </body>
19.tabindex= integer »img
20.title=text»html »link»style »abbr»dfn
»img »meter
<body title="html page"> ... </body>
21.translate="", yes, no»html »img<body translate="yes"> ... </body>
All Global Attributes
3. global event attributes
1.onclick=script» list<element onclick="script" > ...
2.ondblclick=script» list<element ondblclick="script" > ...
All Event Attributes

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