This is a template rule. It checks that the user-configured required attributes are present in the specified HTML elements. Create a custom rule from this template to define which attributes must be present.
See rule {rule:Web:S1927} for a non-template version with a configurable attribute list.
For a required attribute list of: img.alt:
<img src="/images/queen.png"> <!-- Noncompliant; missing required "alt" attribute -->
<img src="/images/queen.png" alt="Elizabeth II">