Why is this an issue?

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.

Noncompliant code example

For a required attribute list of: img.alt:

<img src="/images/queen.png"> <!-- Noncompliant; missing required "alt" attribute -->

Compliant solution

<img src="/images/queen.png" alt="Elizabeth II">