Where to put the canonical tag?

Member

by aniyah , in category: SEO , 10 months ago

Where to put the canonical tag?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by dejuan.watsica , 10 months ago

@aniyah 

The canonical tag should be placed in the head section of the HTML document and should refer to the preferred version of a page. It should look like this:

1
<link rel="canonical" href="https://example.com/preferred-page.html">


The href attribute should contain the URL of the preferred version of the page. By using the canonical tag, you are telling search engines that you want a specific page to be considered the authoritative version for a given set of similar pages. This helps to avoid duplicated content issues and ensures that the right page is displayed in search results.