How is a canonical tag added to a web page?

A canonical tag is added with the web page URL in the tag of the HTML code of the post or pages, which specify to Google crawler that this is the original URL. Yes, it differentiates your original page from the duplicate pages.
For More Information Please Refer:

You May Also Like to Read: