What is hreflang?
Hreflang is an HTML attribute or sitemap entry that tells search engines which language and regional version of a page is meant for which audience. It helps sites serving the same content in several languages, such as English, Malay and Chinese, show the right version to the right searcher.
Hreflang is a small piece of markup, placed in a page's head, in its HTTP headers, or in an XML sitemap, that points to other versions of the same page. Each tag names a language code, and optionally a country code, such as en-MY for English in Malaysia, ms-MY for Malay in Malaysia, or zh-Hans and zh-Hant for Simplified and Traditional Chinese. Search engines read these tags to understand that the pages are alternates of one another rather than duplicate content.
The attribute matters in Malaysia because many agency and business websites run in more than one language. A firm might publish its main site in English, a Malay version for government-linked or local-facing work, and a Chinese version aimed at the Klang Valley and Penang audiences. Without hreflang, a search engine may guess which version to show, and a Chinese-speaking searcher in Johor could land on the English page. Correct tags reduce that mix-up and help each version appear in the results where it fits best.
Hreflang does not improve rankings on its own, and it works best when each language version is a real, translated page with its own URL. It is one part of international and multilingual SEO, a field usually handled under technical SEO. Each page should also point back to itself, and the tags must match in both directions, or search engines may ignore them.
For readers looking for providers who handle this work, the technical SEO category lists agencies that cover site structure, indexing, and multilingual setup.