![JAR search and dependency download from the Maven repository](/logo.png)
org.sonar.l10n.web.rules.Web.RequiredAttributeCheck.html Maven / Gradle / Ivy
The newest version!
This rule checks that the specified attributes are present in HTML tags.
For a required attribute list of img.alt,img.height,img.width
:
Noncompliant Code Example
<img src="/images/queen.png"> <!-- Noncompliant; missing all required attributes -->
Compliant Solution
<img src="/images/queen.png" width="60" height="85" alt="Elizabeth II">
© 2015 - 2025 Weber Informatics LLC | Privacy Policy