Hosting Solutions
mobile_logo Table of Contents


The <body> element is the parent element for all content in the document. JavaScript provides the document.body property to allow script authors easy access to the document body element.

Code Example

<html> <body> <h2>This is a web document content area</h2> <p>All of my content will be placed inside of the body element.</p> </body> </html>


globals - the global attributes common to all elements possible values: see global attribute list onafterprint - fires when the document print process is completed onbeforeprint - fires when the user requests to print to document onbeforeunload - fires when the document is about to unload onhashchange - fires when the documents hashed identifier changes onlanguagechange - fires when the document language changes onmessage - fires when the document receives a message onoffline - fires when connection to the network is lost ononline - fires when connection to the network is re-established onpagehide - fires when the page's entry in the session history stops being the current entry onpageshow - fires when the page's entry in the session history becomes the current entry onpopstate - fires when the user navigates the session history onstorage - fires when the corresponding localStorage or sessionStorage storage areas change onunload - fires when the page is going away

Official Documentation



aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr