Font size
WorksheetsSemantic HTML and Accessibility Worksheet
Total questions: 100
Worksheet time: 2hrs 40mins
A webpage requires proper semantic structure to improve accessibility. Which approach best demonstrates higher-order thinking in choosing HTML tags?
Use
Choose tags based on screen reader interpretation and content meaning
Use semantic tags only for styling
Replace headings with tags
Use
for layout
A developer must reorganize a webpage to improve SEO ranking. Which decision shows correct semantic judgment?
Replacing
Using
Using
repeatedly to create paragraphs
Removing
Putting all content inside
While debugging, a webpage loads incorrectly because block-level and inline elements are used inconsistently. Which fix is most appropriate?
Convert all elements to inline
Reassign elements based on content intent and display behavior
Nest block elements inside inline elements
Remove all block tags
Use only
A team debates whether to wrap an entire article in
To make content more maintainable, which structural decision is best?
Use
Use semantic markup to describe content purpose
Combine CSS and HTML into one file
Use tags for styling
Hardcode layout using tables
A developer wants the most maintainable code. Which modification best aligns with modern HTML?
Replace CSS with inline styles
Replace with where meaning is intended
Replace with
Use
Use
You are asked to revise HTML content so that assistive technologies can interpret it better. Which modification demonstrates correct semantic enhancement?
Use
for all headings
Use hierarchical heading levels appropriately
Replace
- with
Use
to wrap entire document
Remove image alt attributes
A page renders incorrectly because several tags are not properly nested. Which strategy is best?
Ignore errors if the browser loads
Use a validator to enforce child-parent tag rules
Remove closing tags
Nest
inside
Nest block elements inside
You need to optimize HTML for mobile-first design. Which decision best supports this?
Use fixed pixel widths
Use semantic structure with responsive CSS
Disable viewport meta
Use tables for layout
Use inline CSS for everything
A designer uses for headings. How should you correct this for semantic accuracy?
Replace with
Replace with
- tags according to importance
Replace with
Replace with
Keep as
If a webpage loads slow due to excessive tags, what is the most effective method to optimize structure?
Remove all semantic tags
Remove unnecessary nested wrappers
Use
instead of
Use table-based layouts
Duplicate heading tags
A junior dev creates headings in non-sequential order (e.g., h1, h4, h6). What is the best fix?
Use only h1
Use heading levels in logical hierarchy
Use
Replace all with
Use no headings
An accessibility review shows missing
Add placeholders only
Add labels linked via for=""
Use for labels
Remove form controls
Wrap labels inside
A developer uses tables for layout. What is the best correction?
Continue using tables
Replace layout tables with CSS
Add more rows to align content
Merge cells for layout
Use
tags
To improve logical document flow, where should
Wherever large text is needed
Near content it supports
Always at the bottom
Always inside
Must contain
Why should you avoid using deprecated tags like ?
They slow down CPU
They break all browsers
They are replaced by CSS for cleaner structure
They remove semantics
They are invisible
A client requests a print-optimized HTML structure. What strategy works best?
Put print rules inline
Combine semantic HTML + CSS print media queries
Use tables for print layout
Expand images
Remove CSS files
A webpage has inconsistent heading styling. Which approach best solves this?
Inline CSS
External stylesheet + semantic headings
More tags
Replace all headings with
Use tables for headings
A student wraps entire page in a
tag. How do you fix structural correctness?
Add CSS only
Replace with correct block-level containers
Replace with
Duplicate tags
Remove all closing tags
A page uses images as buttons. What is more accessible?
Use
Use
Use
Use
Use hidden tables
A developer struggles with CSS specificity. Which fix improves maintainability?
Use inline styles
Reduce selector complexity and rely on class selectors
Use !important everywhere
Use IDs for all elements
Avoid CSS altogether
To override an inherited property, which approach is BEST?
Add more
