C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <body> tagHTML <body> tag defines the main content of an HTML document which displays on the browser. It can contain text content, paragraphs, headings, images, tables, links, videos, etc. The <body> must be the second element after the <head> tag or it should be placed between </head> and </html> tags. This tag is required for every HTML document and should only use once in the whole HTML document. Syntax<body> Place your Content here........</body> Following are some specifications about the <body> tag
Example<!DOCTYPE html> <html> <head> <title>Body Tag</title> </head> <body> <h2>Example of body tag</h2> <p>This paragraph is written between the body tag</p> </body> </html> Output: AttributeTag specific Attributes
Global AttributeThe <body> attribute supports global attribute in HTML. Event AttributeThe <body> attribute supports Event attributes in HTML. Supporting Browsers
Next TopicHTML br Tag
|