<h2> tags are expected to exist in the <body> of a page. If your H2 heading tag is outside the body, it should be deleted and re-added in the appropriate location.
Like an <h1> tag, <h2> tags are a way to structure the content on your pages and make it easier for both search engines and users to understand what a page may be about.
However, if an <h2> tag exists outside of the <body>, then search engines may not recognize it. This is a missed opportunity to offer crawlers more information about your page.
In order to move an <h2> tag to the <body>, the existing tag will need to be deleted. This solves the issue of having the tag be in the wrong location.
Then, you’ll need to re-add the tag to the correct location so that search engines can understand it.
Inspecting your pages can show you instances where the <h2> tag is present outside of the <body>. For example, an incorrect tag could look something like this:
<body> … </body>
<h2>Example Tag Outside Body</h2>
To start the optimization process, this incorrectly placed tag should be deleted. This can be done through your site’s HTML code. If you don’t have edit access to your site’s code, the dev team should be able to help you make the necessary changes.
Once the <h2> tag is gone, it can be re-added. Be mindful to put the tag within the <body>— a critical part to this optimization.
Following the example, the correct code would look something like this:
<body>
<h2>Example Tag Inside Body</h2>
</body>
These optimizations can be implemented site-wide, across thousands of pages with SEO execution platform ClarityAutomate. A few minutes is all it takes to add, delete, or update your <h2> tags.
Start by selecting “Code” in ClarityAutomate to make an optimization to an <h2> tag.
The existing tag needs to be deleted before it can be re-added to the <body>.
This step specifies the <h2> tag that will be deleted.
Adding the H2 also requires a change to the code.
As opposed to deleting or updating, an element is being added.
This step specifies where the new tag will go.
As a last step, enter the H2 code. Your changes are ready to be implemented!
If an <h2> tag exists outside the <body> it should be deleted and re-added in the appropriate location.
This optimization can be made site-wide with just a few clicks with ClarityAutomate.