<body> element contains the content of the document/webpage. Everything which will be displayed
on the page such as text, graphics and images is contained within the
<body> element is one of the principal structural elements of a webpage and fits into the layout of the page as follows:
As you can see the
<title> elements are placed before the opening
<body> tag as they contain information
that will not be displayed on the screen and at the bottom of the page code the
<body> element is closed just before the closing tag for the
- CORE AND LANGUAGE ATTRIBUTES - class, id, title, style, dir, lang
- MOUSE AND KEYBOARD EVENT ATTRIBUTES - onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmouseout, onmousemove, onkeydown, onkeyup, onkeypress
- onload - specifies an action to occur when the body of the document loads into a browser window.
- onunload - specifies an action to occur when the body of the document is removed from a browser window.