Visible labels or instructions are available for all inputs and input groupings.
WCAG 2 criterion
3.3.2 Labels or Instructions (Level A)
Tools and requirements
Test procedure
During manual evaluation, on all forms, ensure that each input has a descriptive label which describes its purpose. Fieldsets also require labels if they are required to understand the relationship of multiple inputs.
AI Prompt
Copy to Clipboard
Create a PHP class in the namespace "App\Services\AccessibilityAnalyzer\GuidelineRules"
that extends "App\Services\AccessibilityAnalyzer\GuidelineRuleRunner" and is called "Guideline79" that has a function with the signature "protected function findApplicableElements(Crawler $crawler): Crawler". The base class includes the function "protected function isElementIncludedInAccessibilityTree(\DOMNode $element): bool" for determining if an element is included in the accessibility tree.
Web accessibility guideline:
## Visible labels or instructions are available for all inputs and input groupings.
### WCAG 2 criterion
3.3.2 Labels or Instructions (Level A)
### Tools and requirements
* Manual Evaluation
### Test procedure
During manual evaluation, on all forms, ensure that each input has a descriptive label which describes its purpose. Fieldsets also require labels if they are required to understand the relationship of multiple inputs.