Test 202: Can You Index a Page with HTML Classes or IDs?

Often, the first step to determine if something is a ranking factor is to get a page to index based on a keyword being present only in that factor. If you use correlational software such as Cora, you’ve probably seen that keywords in HTML Classes and IDs often correlate to better rank. Additionally, other testing SEOs are reporting ranking improvement by optimizing Classes and IDs. You can name IDs and Classes anything you’d like. The names used are often descriptive of what they will produce. As far as SEO is concerned, why not use keywords as the names and get an edge? We want to start testing if HTML Classes and IDs are ranking factors. So for this test, we will try to index pages with keywords only found in Classes and IDs. 

Test Downloads

Transcription Below

Basically, these are just naming conventions. You are naming some things so that you can say that this does that basically and you name it so that you can use it again. The thing is, the name is completely arbitrary. It is completely descriptive of what the result will be but it is a completely arbitrary thing. You can name something anything that you want to name it. That means you can name your target keywords. So, what we want to see is, can we index a page by naming classes and IDs with keywords because that means Google is naming it and they are considering it and if we can index for it then we can start hiding keywords.

What this looks like in here is this is a div, id, fake keyword, class, then a fake keyword. The idea is, will these pages index for that fake keyword. I think we ran this 10 times, I think. In the end, nothing indexed. I have seen this as an SEO ninja hack where you can hide keywords, ids, and classes and it is going to help you out, at least maybe hide words that you do not want on the page. You can hide them in IDs and classes and it looks like that is not the case at all. We are testing now if these things affect rank, if we can actually get movement with them but when it comes to indexing a page just on this, it is not going to work. I can see that it would affect rank if you actually also have them on the pages optimized for that because we see that a lot for correlational data like from Cora for example where tags seem to play a part in it. I can see this affecting rank but if you say you want to completely hide a whole subset of keywords that you want the page to rank for an you didn’t want them displayed, you are not going to get it done doing this.