Number of HREF Lang Tags is a raw count of the link tags in a page’s rendered head that carry a nonblank hreflang value. It tallies how many language/region annotations are present — it does not judge whether those codes are valid, unique, reciprocal, or pointed at real equivalents, so a higher count is only healthy when your page genuinely has that many alternates.
| Factor ID | RG-SIZ-014 |
|---|---|
| Family | Size & length |
| Measurement | Count |
| Measured zone | Link tags in the rendered document head |
What it measures
This factor counts the recognized link tags carrying a nonblank hreflang value. Each valid hreflang annotation on the page adds one to the count; tags with a missing or empty value do not count.
How RankGear measures it
RankGear parses the head link elements, extracts the supported hreflang attributes, trims whitespace, and counts the nonempty values. It does not validate the codes, the URLs, reciprocity between pages, or uniqueness — it reports how many annotations are present, nothing about their correctness.
What RankGear looks for
<link rel="alternate" hreflang="en-us" href="https://example.com/us/" />
<link rel="alternate" hreflang="fr-fr" href="https://example.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />| If the count is… | How to read it |
|---|---|
| 0 on a single-language site | Expected. Sites without genuine language or regional variants usually need no hreflang tags at all. |
| Equal to your real set of alternates | Consistent with a correctly annotated multilingual page — assuming each code is valid and reciprocated. |
| Higher than your real set of alternates | A signal to inspect. Malformed or duplicated annotations still count here, so an inflated number can hide errors rather than reflect broader coverage. |
How to optimize it
Treat this as an observation, not a target — do not add tags to raise the number. List every genuine language or regional equivalent with valid codes, self-references, reciprocal annotations, and consistent canonicals, and use x-default only when it accurately identifies a fallback. A count that matches your true set of alternates is the goal; padding it with duplicates or invalid codes works against you.
Important considerations
- More tags are appropriate only when more valid alternatives actually exist.
- Malformed annotations can still count, so the number alone does not confirm correctness.
- Duplicate and conflicting values require separate checks — this factor does not detect them.
- Single-language sites usually need none, and a count of zero is the correct outcome for them.
- This is a descriptive count that relates to how pages in a measured result set are annotated; it does not make a page rank or guarantee a position.
Related factors
Part of the Factors reference · how RankGear measures · glossary.