The hreflang attribute tells search engines which language and country audience you are trying to reach for a particular page. This attribute allows the search engine to serve the pages to users searching in that specific language or country. If your site targets more than one state or users who speak different languages, you need to use the hreflang attribute to target your intended country and demographic. In addition to this, hreflang also solves a possible duplicate content problem.