Has MicroData Postal Code

Has MicroData Postal Code checks whether the literal Microdata attribute itemprop="postalCode" appears anywhere in a page’s rendered body after scripts are stripped. It returns 1 when at least one match is found and 0 otherwise. It is a text match, not a validation of your address markup, so a 1 confirms the string is present but says nothing about whether the surrounding item type or value is correct.

Factor IDRG-SCM-031
FamilyStructured Data — Microdata
MeasurementBinary presence (0 / 1)
Measured zoneRendered body HTML with scripts removed

What it measures

This factor reports whether RankGear finds the Microdata attribute itemprop="postalCode" in the rendered body after script elements are removed. Microdata expresses a ZIP or postal code as a property of a postal address inside an item graph, and this check simply records whether that specific property attribute is present in the markup.

How RankGear measures it

RankGear performs a case-insensitive search for the literal double-quoted form itemprop="postalCode". It returns 1 when at least one match exists in the script-stripped body and 0 otherwise. The match is on the raw HTML text, so the attribute name, equals sign, double quotes, and property value must appear contiguously.

What RankGear looks for

<span itemprop="postalCode">90210</span>
ValueMeaning
1The string itemprop="postalCode" was found at least once in the script-stripped body.
0No case-insensitive match for that double-quoted attribute was found.

How to optimize it

Use postalCode only as the correct postal or ZIP code within a genuine postal address, and keep the value aligned with the visible content and the vocabulary expected by its parent item type. Because the detector only checks for the double-quoted, contiguous form, single quotes or extra spacing around the attribute will not register — if you intend the markup to be detectable, write it as itemprop="postalCode". Treat a 1 as confirmation that the property is present, not as a target to chase for its own sake.

Important considerations

  • The detector pattern-matches HTML text instead of parsing or validating a Microdata item graph.
  • It requires the attribute name, equals sign, double quotes, and property value to be contiguous; single quotes or added spacing do not match.
  • Scripts are removed before matching, and capitalization does not affect detection.
  • Validate the parent item type, property value, nesting, and structured-data eligibility independently.
  • This is a correlation-based prioritization signal within a measured result set; the presence of the attribute relates to position but does not by itself cause or guarantee a ranking.

Related factors

Part of the Factors reference · how RankGear measures · glossary.