Skip to main content
InterviewHubPRO
Section Overview
Q4

Question 4 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

8%
Web Accessibility & WCAG (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is the First Rule of ARIA use?

junior LevelCode ExampleaccessibilityBasic

In Simple Words: The W3C First Rule of ARIA:

"If you can use a native HTML element or attribute with the semantics and behavior you require already built-in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so."

html
<!-- ❌ ANTI-PATTERN: Div masquerading as button -->
<div role="button" tabindex="0" onclick="submit()" onkeydown="handleKey()">Submit</div>

<!-- ✅ THE FIRST RULE OF ARIA: Native button -->
<button type="submit">Submit</button>

Native elements have built-in keyboard navigation, focus handling, and screen reader announcements without a single line of custom JavaScript.