< All the HTML Tags >

<body></body>

Video Coming Soon...

  • body

    Tag Type

    block

    Tag Category

    document structure

    Defines the body of the document

    Viewed

    1

    Examples

    1

Definition:

The HTML <body> tag represents the main content area of an HTML document, containing all the elements that are visible to the user, such as text, images, links, and other media.

Everything that is displayed on the webpage resides within this tag, making it a crucial part of the document structure. The <body> tag can also contain attributes such as background, text, and link in older HTML specifications.

Understanding how to effectively utilize the `<body>` tag is fundamental to web development, as it encompasses all the user-visible elements on a webpage.

Attributes:

onload, onunload, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default body Example:

Using the <body> tag to define the main content.
<body><p>This is the body.</p></body>

Default body Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…