rel

External links: when use rel=“external” or rel=“nofollow”?

萝らか妹 提交于 2020-01-20 17:08:10
问题 In most of my web site I have a lot of external links to my other sites and other external sites. I need to know when is better to use rel="nofollow" or rel="external" in a website? 回答1: You may use external for every link to a different website, no matter if it’s yours or not, if it’s on the same host or not. You may use nofollow for every link that you don’t endorse (for example: search engines shouldn’t assume that it’s a relevant link and should not give any ranking credit to this link).

Can I mix and match rel attributes?

二次信任 提交于 2020-01-15 06:28:47
问题 I'm a little confused by the rel attribute usage. Individually I understand rel="author" , rel="me" and rel="publisher" , however I am wondering if I can mix and match attribute values. Example 1: On my website, I have a link in the footer which links to my domain. Do I add rel="me" , rel="author" or rel="me author" ? Example 2: On my website I have a link to my twitter account. Do I add rel="me" or rel="me publisher" ? 回答1: You can't add more than one rel attribute into one HTML element, but

Can I mix and match rel attributes?

二次信任 提交于 2020-01-15 06:28:26
问题 I'm a little confused by the rel attribute usage. Individually I understand rel="author" , rel="me" and rel="publisher" , however I am wondering if I can mix and match attribute values. Example 1: On my website, I have a link in the footer which links to my domain. Do I add rel="me" , rel="author" or rel="me author" ? Example 2: On my website I have a link to my twitter account. Do I add rel="me" or rel="me publisher" ? 回答1: You can't add more than one rel attribute into one HTML element, but

hreflangs for default and french page

て烟熏妆下的殇ゞ 提交于 2020-01-06 02:19:08
问题 I am doing the seo for multi-language, i have English,French,Spanish version web pages. so, for English pages, I have example.com/en, and inside the page content with English page as default. <link rel="alternate" href="http://example.com/sp" hreflang="sp" /> <link rel="alternate" href="http://example.com/fr" hreflang="fr" /> <link rel="alternate" href="http://example.com/en" hreflang="x-default" /> However, in french page, http://example.com/fr, do i have to do this again? such as add the

'itemprop' and 'rel' attributes on same element

百般思念 提交于 2020-01-02 04:44:06
问题 Is it valid to use the itemprop attribute and the rel attribute on the same element? The example from Google’s Site Name documentation contains <link rel="canonical" href="https://example.com/" itemprop="url"> which gives this error in https://validator.w3.org/nu/: Attribute rel not allowed on element link at this point. 回答1: It depends on the specification. Microdata, where the itemprop attribute is coming from, is defined by WHATWG’s HTML as well as by W3C’s HTML Microdata. The WHATWG

To see the content POST data trasferred by jQuery

只谈情不闲聊 提交于 2019-12-30 04:06:32
问题 How can you see what the attribute rel contains when it is transferred by POST? I transfer a variable by the rel attribute by jQuery. I would like to know what the attribute, $_POST['answer'], contains. This question is based on: To make an action based on the link location by jQuery jQuery IRC tells me that the solution seems to be Firebug somehow. How can you see POST data in Firebug? 回答1: You can use the Network tab and look at the params tab as shown below (this was a get request to

Meaning of Rel atttibute

十年热恋 提交于 2019-12-24 15:18:38
问题 I found a strange a href in a webpage. It looks like <a href=... rel="servername.com|6d63402c" ...other properties... ></a> What does cryptic |6d63402c mean ? Is it a bitwise OR operation or just a string? The document contains different links with different rels in this style. 回答1: The rel attribute specifies the link relationship type. In HTML5 you may only use rel values that are defined in the HTML5 specification, or are registered in the Microformats wiki page existing rel values: HTML5

What rel=profile is for?

我们两清 提交于 2019-12-17 22:38:55
问题 While doing the HTML for my new template, I stumbled across a new meta tag <link rel="profile" href="http://gmpg.org/xfn/11" /> What's this for? I found it linking to this page, and through Google I found this Microformat but I didn't get it. 回答1: In HTML 4.01, there is the profile attribute for the head element: This attribute specifies the location of one or more meta data profiles, separated by white space. For future extensions, user agents should consider the value to be a list even