How do I fix H1 tag issue?

This is so frustrating being that I have 0 knowledge of coding & eager to get my site indexed quicker on Google & Bing. I've already set up the bing webmaster tool and ran the diagnostic, where it reported an issue with the H-1 tag which is causing my site to not be indexed. I've read another similar thread about this kind of issue, but it only complicated things more. Can someone explain the issue to me in simpler terms and if it can be fixed? Thanks!

618 Views
Message 1 of 2
Report
1 REPLY 1

I don't know if absence of an H1 tag would be the sole cause of a website not being indexed; you may need to email their support. You can add H1 tags to your page/s using the embed code function using Javascript. Not the most straightforward solution; but if that's what Bing is blocking you on, it may get you past that issue. Google should index, but Bing will still show error as it appears to pull prior to the JavaScript rendering in the DOM.

Script for embed - put in script tags:

const h1 = document.createElement("H1");
const textNode = document.createTextNode("This is an H1 text");
h1.appendChild(textNode);
document.body.appendChild(h1);

 

556 Views
Message 2 of 2
Report