User Tools

Site Tools


Sidebar

en:objects:body

body

Object for working with the document body on the current page (BODY tag).



Code example:
<body bgcolor=0xFFFFFF>Page Text<:body>

Description
the BODY Tag is used to store the content of a web page (content) displayed in the browser window. The information to be output in the document should be placed inside the <body> container. This information includes text, images, tags, JavaScript scripts, etc.

The body tag is also used to define the colors of links and text on a web page. This practice is frowned upon in HTML 4.instead, we recommend using styles to specify the color scheme by applying them to the BODY selector. However, most attributes are still supported by different browsers.

the body tag is often used to place an event handler, such as: onload, onunload, which is executed after the document has finished loading into the current window or frame.

Opening and closing body tags on a web page are optional, but using them is considered a good style, to determine the beginning and end of an HTML document.

Learn more about the BODY tag (source)



basic functionality
Changing properties




Changing properties

disable_onunload_message – cancel message - warning about leaving the current starting page

en/objects/body.txt · Last modified: 2020/10/06 17:29 (external edit)