Canonical Tag

i just want to know about canonical tag
and how it works?

Basically, it’s a way of specifying your preferred version of a web page, to avoid “duplicate” content issues.

I think you’ll find everything you need to know here: https://support.google.com/webmasters/answer/139394?hl=en