|How-to||– 7 min read –||September 26, 2019|
What should be present in the Body tag
What is the Body tag
- head is a block of headings containing technical information, scripts and meta tags that the browser does not show to users in standard viewing mode. The exception is the <title> meta tag, which defines the page title;
- body is all content of a page that is available to users.
In an HTML document, there can only be one <body> tag. This tag should contain quality and unique content which users find interesting for the successful optimization of a web page. However, one must make sure that it neither duplicates completely nor partially the project's or other website's content.
Where is the Body tag located
Why do you need the Body tag
Attributes of the <body> tag
Examples of using the <body> tag attributes
- In this example, the bgcolor attribute is used, which defines the background color of the page. The original page background color was changed to black via this attribute:
- changing the background image using the background attribute:
Is it possible to add meta tags to the body tag?
Attempts to use a meta tag in the body render the code invalid from the HTML specification viewpoint and may disrupt the markup of the document.
In some cases, if the meta tags are incorrectly placed in the body of the page, they can be automatically transferred by the browser to the head section and the document will be displayed correctly. However, it is desirable to create valid markup and add meta tags only to the heading section and not to the main content of the page.
|Run Site Audit|
Learn how to get the most out of Serpstat
Want to get a personal demo, trial period or bunch of successful use cases?
Send a request and our expert will contact you ;)
Cases, lifehacks, researches and useful articles
Don’t you have time to follow the news? No worries!
Our editor Stacy will choose articles that will definitely help you with your work. Join our cozy community :)