- Courses
- HTML
- HTML top level tags
- <body>
- Role of the body tag in web pages
What is the primary function of the <body>
tag in a web page?
The <body>
tag contains the content of a web page.
The <body>
tag is a fundamental part of an HTML document, as it holds all the content that is visible to users, such as text, images, links, and other media. It is placed within the <html>
tag and follows the <head>
section. The content within the <body>
tag is what browsers render on the screen, making it essential for displaying the main information of a webpage.