Hreflang is an HTML attribute that specifies the language and geographic targeting for a webpage. It helps search engines to present the most relevant version of a page to users based on their language and location preferences.