Question 31
What is the purpose of `aria-live`?
aria-live announces dynamic updates (like status messages) to screen readers without requiring user focus changes.
Question 31
aria-live announces dynamic updates (like status messages) to screen readers without requiring user focus changes.
Question 32
hidden removes content from visual and accessibility trees. aria-hidden hides from accessibility tree only, while visual rendering can remain.
Question 33
Skipping levels (h1 to h4) or using headings for styling only. Headings should reflect logical content structure.
Question 34
picture enables responsive images and format fallback by letting the browser choose the best source using media/type conditions.
Question 35
It allows modern efficient formats first (WebP/AVIF), then falls back to JPEG/PNG for older browsers.
Question 36
A canonical link (rel="canonical") indicates the preferred URL version for duplicate/similar content to consolidate ranking signals.
Question 37
preload fetches critical assets early; preconnect establishes early network handshakes for third-party origins.
Question 38
It prevents reverse tabnabbing and suppresses referrer leakage for external links opened in new tabs.
Question 39
Without type, button defaults to submit in forms. Explicit type="button" avoids accidental form submissions.
Question 40
It asks browser not to autofill, but often hurts UX. Prefer specific autocomplete tokens instead of blanket disabling.
Question 41
Keep values simple, avoid storing sensitive data, and treat them as UI metadata rather than source of truth for business logic.
Question 42
tabindex="0" inserts into natural tab order, -1 allows programmatic focus only. Positive values are generally discouraged.
Question 43
Focus trapping keeps keyboard focus inside components like modals so users do not tab to background content.
Question 44
Too many nav or main-like landmarks creates noisy navigation for screen-reader users. Keep landmarks meaningful and minimal.
Question 45
Client-side improves UX and immediate feedback; server-side is mandatory for security and data integrity.