body Element

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.


If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)


PDF mobile

body Element

A body element in the object model of an HTML document identifies the body of the document. When creating a document with HTML code in serialized form, enclose the body content between a <body> start tag and a </body> end tag to create a body element.

HTMLBodyElement interface
Superinterface:
HTMLElement
HTML Tag Reference:
<body> tag
DOM Events
Event TypePropertySupported
abortFunctiononabort
afterprintFunctiononafterprint
beforeprintFunctiononbeforeprint
beforeunloadFunctiononbeforeunload
blurFunctiononblur
canplayFunctiononcanplay
canplaythroughFunctiononcanplaythrough
changeFunctiononchange
clickFunctiononclick
contextmenuFunctiononcontextmenu
cuechangeFunctiononcuechange
dblclickFunctionondblclick
dragFunctionondrag
dragendFunctionondragend
dragenterFunctionondragenter
dragleaveFunctionondragleave
dragoverFunctionondragover
dragstartFunctionondragstart
dropFunctionondrop
durationchangeFunctionondurationchange
emptiedFunctiononemptied
endedFunctiononended
errorFunctiononerror
focusFunctiononfocus
formchangeFunctiononformchange
forminputFunctiononforminput
hashchangeFunctiononhashchange
inputFunctiononinput
invalidFunctiononinvalid
keydownFunctiononkeydown
keypressFunctiononkeypress
keyupFunctiononkeyup
loadFunctiononload
loadeddataFunctiononloadeddata
loadedmetadataFunctiononloadedmetadata
loadstartFunctiononloadstart
messageFunctiononmessage
mousedownFunctiononmousedown
mousemoveFunctiononmousemove
mouseoutFunctiononmouseout
mouseoverFunctiononmouseover
mouseupFunctiononmouseup
mousewheelFunctiononmousewheel
offlineFunctiononoffline
onlineFunctionononline
pauseFunctiononpause
playFunctiononplay
playingFunctiononplaying
pagehideFunctiononpagehide
pageshowFunctiononpageshow
popstateFunctiononpopstate
progressFunctiononprogress
ratechangeFunctiononratechange
readystatechangeFunctiononreadystatechange
redoFunctiononredo
resetFunctiononreset
resizeFunctiononresize
scrollFunctiononscroll
seekedFunctiononseeked
seekingFunctiononseeking
selectFunctiononselect
showFunctiononshow
stalledFunctiononstalled
storageFunctiononstorage
submitFunctiononsubmit
suspendFunctiononsuspend
timeupdateFunctionontimeupdate
undoFunctiononundo
unloadFunctiononunload
volumechangeFunctiononvolumechange
waitingFunctiononwaiting

Valid HTML 5