Mobile app version of vmapp.org
Login or Join
Angela700

: Do you set the title attribute of the canonical link tag to the page title? A <link ...> tag supports the title="..." attribute. When used with rel="canonical", what do you set the title

@Angela700

Posted in: #RelCanonical #TitleAttribute

A <link ...> tag supports the title="..." attribute.

When used with rel="canonical", what do you set the title attribute to? Would that be a hard coded title such as:

title="Canonical URL"


Or do you set it to the page title, such as:

title="Home Page"


It seems to me that the page title makes more sense. Is there documentation about that attribute along rel="canonical"?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

You don't need to use the title attribute. It doesn't add any functionality.

This is what your canonical tag should look like. Make sure you use the FULL url including the correct http or https protocol. Not relative urls.

<link rel="canonical" href="https://blog.example.com/dresses/green-dresses-are-awesome" />


Here's what Google recommends: support.google.com/webmasters/answer/139066?hl=en

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme