3

I'm wondering what the effect would be of a class in the HTML.

Say I have a script that tracks events that I can turn off by adding class="notracking" to the link. Would this effect the SEO effect of a (dofollow) link?

This is how the HTML would look like:

<a class="notracking" href="http://www.example.com/" target="_blank">Exaple linktext</a>
  • 1. No 2. There is no such thing as dofollow. – John Conde Oct 11 '17 at 16:41
4

No relation to SEO what so ever, classes and id's are on-site attributes for styling and/or scripting.

You should also note there is no such thing as "dofollow", by default SE's will crawl, unless told otherwise with "nofollow" and "noindex" attributes

  • 4
    "there is no such thing as "dofollow"" - dofollow is simply an expression, when you need to express that a link is not a "nofollow" (avoids the double negative). – MrWhite Oct 11 '17 at 17:09
  • 1
    Its a pointless "expression". No one should assume its "nofollow" unless otherwise stated. The more people keep expressing it as a "thing", the more its adding to the misconception that they should use it. You only have to search for how many sites actually use the attribute to see that sometimes, people are not clever enough to judge whether something is an expression or an factual statement. – Randomer11 Oct 11 '17 at 17:42
  • 2
    Google has been known to render pages and compare the output with the mark-up - if you are using classes to visually hide links that can be a problem and you can be penalised for it. While clearly not the intent in this case, it should be noted for the otherwise sweeping statement that classes are not important. – Zhaph - Ben Duguid Oct 12 '17 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.