Hello friends,
how to add canonical tag in html..?
A canonical tag defines the search engine that a specific URL represents the master or main copy of a webpage. By using canonical tag one can prevent the difficulty of duplicate content displaying on multiple URLs.
As we all know that Google or other search engines penalize URLs with duplicate content so canonical tags are the solution.
In other words, if you have any duplicate content on different URLs we can make it clear to the search engine by using a canonical tag which one is the main URL and which one has to be indexed.
Here is the syntax of the canonical tag in HTML:
<head>
<link rel="canonical" href="canonical/main URL here" />
</head>
To add a canonical tag in HTML simply follow the simple steps as:
Open up your .hataccess file.
Add in the Header add Link command to create the canonical tag.
Submit the URL to Google Search Console Fetch & Render to get the canonical crawled.
Setting canonicals using rel="canonical" HTML tags
Using a rel=canonical tag is the simplest and most obvious way to specify a canonical URL
The canonical link belongs in the <head> section of your website.
This is what it looks like.
<link rel="canonical" href="https://electrumitsolutions.com" />
Placing this tag on a page tells search engines that the original copy of this content lives at the address listed in the href attribute.
Any links or ranking juice that was pointing to the current page will then be directed to the link supplied in your canonical tag.
Now, you can have multiple similar pages. Instead of Google punishing you for duplicating content, all of your backlinks will be combined in a sense and boost the reputation of the original page.