Use the rel = 'external nofollow' label to reduce weight loss

Source: Internet
Author: User

 

In the footer section, I often put some simple pages and add many links. I found that many of them are used for this label, but it is quite important. Forget it and check it later. 2011-07-14

<Meta name = "Robots" content = "noindex, nofollow"/>

Reference http://baike.baidu.com/view/1584081.htm#7

It mainly tells the spider not to capture the link of the page

<A rel = "external nofollow" href = "url"> <span> content </span> </a>

This is not to capture this link

 

 

The nofollow tag was created by Google one or two years ago to minimize the impact of junk links on search engines. The tag indicates that the search engine link is not edited by the author, so the link is not a trusted ticket.

This label is usually used in blog comments or forum posts, because these are the most spam links. Currently, mainstream blogs and forum software automatically add this tag to the links of comments and posts. Almost all WordPress blogs and Z-blogs, of course yo2 blogs are also included, and have done a good job in Seo.

This method is indispensable for the promotion of new sites. It is a common practice for new webmasters to comment on and leave signature links in some blogs or forums with high weights and high traffic. This seems useless because there are too few blogs without the nofollow tag. This blog is also a new site. Some time ago, this type of work seems to have little effect, at least it did not reflect any valid links in the reverse link statistics of Google's website administrator tool.

ManyArticleGoogle, Yahoo, and MSN all support this tag. Recently, Baidu officially also proposed full support for this tag. For details, see <Baidu has an official answer to some SEO questions and supports nofollow.>.

External is an external site. To open a link in a new window, we usually add target = "_ blank" after the link. We use a transitional doctype (xhtml1-transitional. DTD), but when we use a strict doctype (xhtml1-strict.dtd), this method will not pass W3C validation, the following error prompt will appear:

Div css xhtml xml example source code
"There is no attribute target for this element (in this html Version )"

Originally, in strictly doctype of html4.01, xhtml1.0, and xhtml1.1, target = "_ blank", target = "_ Self", and other syntaxes are invalid, why not use target = "_ blank? It is impolite for foreigners to open a new window without the user's consent. Therefore, the link is declared as an external site through rel = "external. Javascript can be used to open the window:

copy the content to the clipboard
Code :
function externallinks () {
If (! Document. getelementsbytagname) return;
var anchors = document. getelementsbytagname ("A");
for (VAR I = 0; I var anchor = anchors;
If (anchor. getattribute ("href") & Anchor. getattribute ("rel") = "external nofollow") anchor.tar get = "_ blank";
}< BR >}< br> window. onload = externallinks
Save the above Code as one. JS files (such as external. JS), and then call through external join method:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.