Require name and id to match on <map> elements
- Rule ID:
- map-id-name
- Category:
- HTML syntax and concepts
- Standards:
- HTML5
HTML5 requires that when the id attribute is present on a <map> element it must have the same value as the required name attribute.
Rule details
Examples of incorrect code for this rule:
<map name="foo" id="bar"></map>
Examples of correct code for this rule:
<map name="foo" id="foo"></map>
Version history
- 7.12.0 - Rule added.