Placement of the rel="nofollow" attribute in the HTML code

13 replies
  • WEB DESIGN
  • |
Hi,

I've always added the rel="nofollow" attribute right after the affiliate link in the HTML code like this:

<a href="http://AFFILIATELINK.COM" rel="nofollow" target="_blank"><img src="http://WEBSITE.COM/IMAGE.PNG" /></a>
But I've now noticed that many use to add the rel="nofollow" attribute before the affiliatelink like this:

<a rel="nofollow" href="http://AFFILIATELINK.COM" target="_blank"><img src="http://WEBSITE.COM/IMAGE.PNG" /></a>
Which one should I use and does it actually matter?


Thanks,

Jimmy
#attribute #code #html #placement #relnofollow
  • Profile picture of the author connorbringas
    It doesnt matter how you place it. View the source of whatever page you are placing it on to make sure its being implemented properly.
    {{ DiscussionBoard.errors[7344315].message }}
  • Profile picture of the author abhishekcis
    Originally Posted by taskemann View Post

    Hi,

    I've always added the rel="nofollow" attribute right after the affiliate link in the HTML code like this:



    But I've now noticed that many use to add the rel="nofollow" attribute before the affiliatelink like this:



    Which one should I use and does it actually matter?


    Thanks,

    Jimmy
    Hello jimmy,

    it actually doesnt matter, where you are putting rel="nofollow" tag in your anchor tag. It should be somewhere in anchor tag, if you really want to stop flow of your link juice.

    Regards
    Abhishek
    {{ DiscussionBoard.errors[7346477].message }}
    • Profile picture of the author taskemann
      Originally Posted by abhishekcis View Post

      Hello jimmy,

      it actually doesnt matter, where you are putting rel="nofollow" tag in your anchor tag. It should be somewhere in anchor tag, if you really want to stop flow of your link juice.

      Regards
      Abhishek
      Thanks,

      I'm only doing it with the affiliate links. All other links are dofollow.


      Jimmy
      {{ DiscussionBoard.errors[7348682].message }}
      • Profile picture of the author abhishekcis
        that will be great..it will save link juice of your page...& in long run you will get better ranking & page rank
        {{ DiscussionBoard.errors[7350907].message }}
  • Profile picture of the author SoundsGood
    Originally Posted by taskemann View Post

    I've always added the rel="nofollow" attribute...
    Why do this? What is it for, what does it do?

    Thanks.
    {{ DiscussionBoard.errors[7352648].message }}
    • Profile picture of the author taskemann
      Originally Posted by SoundsGood View Post

      Why do this? What is it for, what does it do?

      Thanks.
      So the saerch engines overlook that outbound link. You should do this with links that the search engines doesn't like and find "spammy". Like affiliate links.
      {{ DiscussionBoard.errors[7357245].message }}
    • Profile picture of the author abhishekcis
      Originally Posted by SoundsGood View Post

      Why do this? What is it for, what does it do?

      Thanks.
      As I said it will save link juice of your page to flow somewhere & Google will not follow those affiliate links, which are of no use.
      {{ DiscussionBoard.errors[7359586].message }}
      • Profile picture of the author SoundsGood
        Originally Posted by taskemann View Post

        So the saerch engines overlook that outbound link. You should do this with links that the search engines doesn't like and find "spammy". Like affiliate links.
        Originally Posted by abhishekcis View Post

        As I said it will save link juice of your page to flow somewhere & Google will not follow those affiliate links, which are of no use.
        I see. How important do you guys think this is?
        {{ DiscussionBoard.errors[7360193].message }}
        • Profile picture of the author taskemann
          Originally Posted by SoundsGood View Post

          I see. How important do you guys think this is?
          Well, if you have a site with a lot of affiliate links and very little non-affiliate outbound links, then you should do it but not if you just have a few affiliate links and a overrepresentation with outbound links that gives you good link juice.
          {{ DiscussionBoard.errors[7361827].message }}
          • Profile picture of the author SoundsGood
            Originally Posted by taskemann View Post

            Well, if you have a site with a lot of affiliate links and very little non-affiliate outbound links, then you should do it...
            I see. Thanks!
            {{ DiscussionBoard.errors[7365295].message }}
  • Profile picture of the author shipwrecked
    Makes no difference, it's the same thing.
    I tend to put it first, because I'd like to see at the start what type of link it is.
    {{ DiscussionBoard.errors[7353129].message }}
  • Profile picture of the author bhmseoservices
    Your code should still work fine and there's no real specific placement since HTML virtually powers itself once you create the code. I suppose to be correct for HTML reasons put the rel nofollow after the url. Older browsers may not read it if its infront of the link (may...)
    {{ DiscussionBoard.errors[7359825].message }}

Trending Topics