I have heard that no-follow links does not transfer the PR juice to the sites so I want to make a no-follow link but don't know how to make it. for example I have this code <a href="http://www.smartpixels.net" target="_blank">Smart Pixels</a> How can I make this link a no-follow link, Please guide me. Thank you
Add rel="nofollow", for example: <a href="http://www.smartpixels.net" target="_blank" rel="nofollow">Smart Pixels</a>
Really... its that simple? wow, I thought there must be few lines of code to make it so. Thanks for your help.
As mentioned previously, you only need to add the attribute rel="nofollow" to a hyperlink. Note that the target attribute is not allowed in XHTML 1.0 Strict and newer versions. In that case, you may want to replace the target attribute by rel="external".
This is not my thread but I have interest in this and more, how can I also make an affiliate link like this one: <a href="http://xxxxx.xxxxxxx.hop.clickbank.net"> nofollow and noindex. Can you help me please? Sorry glitto for "hijack" your thread . Regards Dr Web
Dr Web, just add rel="noindex,nofollow" to the hyperlink: <a href="http://xxxxx.xxxxxxx.hop.clickbank.net" rel="noindex,nofollow"> And if you want to replace the target attribute, that would be: <a href="http://xxxxx.xxxxxxx.hop.clickbank.net" rel="noindex,nofollow,external"> You may want to apply link cloaking too.
Cloaking, that sounds very good , can I cloak a clickbank link without affect the track of that link? How can I cloak the link? Is that possible cloak the link to the link appears as a direct link to the page of the product or service that I want to promote, like http://www.seoelite.com and the reader will not able to see http://www.myclickbankid.clickbankidoftheproductowner.hop.clickbank.net, if you tell me that I will rep you all green . By the way, is better an affiliate link open in a new window or not, target blank or external, vantages versus disadvantages. Thanks very, very much for any help. Regards Dr Web
Dr Web, you can cloak any link you want. I suggest you to read this article about affiliate link cloaking. Many people find it annoying that a link opens in a new window, since it clutters up their screen and they can't use the back button. Using the target attribute you make a choice for other people, while most people prefer to make a choice themselves. That's why tabbed browsing was invented. Therefore it's better to replace the target attribute by the rel attribute.
Small correction: the values of the rel attribute need to be separated by a space, not by a comma or another type of punctuation. And the rel="index" attribute refers to the index-page and not to a page that needs to be cached! Hence, the tags your are looking for are: <a href="http://xxxxx.xxxxxxx.hop.clickbank.net" rel="nofollow"> Code (markup): And if you want to replace the target attribute, that would be: <a href="http://xxxxx.xxxxxxx.hop.clickbank.net" rel="nofollow external"> Code (markup): In the latter case, you should also include the following javascript in that page (thanks to Renoir): function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } } window.onload = externalLinks; Code (markup):