InterviewStack.io LogoInterviewStack.io

Semantic HTML and Accessibility Questions

Covers writing semantic HTML using appropriate elements such as header, nav, main, article, section, aside, footer, form, input, and button to create meaningful document structure and improve machine and assistive technology interpretation. Includes implementing Accessible Rich Internet Applications attributes where necessary, providing descriptive alt text for images, labeling form controls, and ensuring correct landmark and role usage. Emphasizes keyboard operability, focus management, logical tab order, and screen reader compatibility for dynamic and interactive components. Tests knowledge of the Web Content Accessibility Guidelines version 2.1 principles including perceivable, operable, understandable, and robust, and concrete requirements such as color contrast ratios, readable font sizes, and accessible error handling. Covers inclusive design practices, accessibility testing and validation strategies, developer and design collaboration to bake accessibility in from the start, and remediation approaches for common accessibility issues at both component and application levels.

HardTechnical
46 practiced
You must persuade executive stakeholders to allocate engineering and design resources to remediate high-severity accessibility debt across the product. Prepare a concise pitch: identify business and legal risks, quantify user impact and estimated costs, propose phased remediation with timelines and KPIs, and suggest governance to prevent regression.
EasyTechnical
39 practiced
You have the following images on a product page: a company logo in the header, a decorative SVG divider, a product photo showing multiple items, an infographic chart, and an icon-only button. For each image describe the appropriate alt text (or why it should be empty) and where a long description belongs for complex images like charts. Explain trade-offs between concise and verbose alt text.
MediumTechnical
38 practiced
You inherit a codebase where many interactive controls are implemented as <div role='button'> with onclick handlers, no keyboard handlers, and no focus styles. Describe the accessibility problems present and outline a prioritized remediation plan that includes quick wins and long-term fixes.
MediumTechnical
41 practiced
Design an accessible accordion component (single panel open at a time). The toggles should be buttons that manage aria-expanded and aria-controls, headings should be semantic, and keyboard interactions must allow Tab to move between toggles and Enter/Space to toggle. Provide markup examples and explain how you handle focus and state.
EasyTechnical
34 practiced
List common ARIA landmark roles (navigation, banner, main, complementary, contentinfo) and their HTML5 element equivalents. Explain when adding explicit role attributes is redundant or can be harmful, and provide an example of correct landmark usage for a blog layout.

Unlock Full Question Bank

Get access to hundreds of Semantic HTML and Accessibility interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.