Intermediate
HTML & CSS
Q52 / 100
What is semantic HTML, and why is it preferred?
Correct! Well done.
Incorrect.
The correct answer is B) Using HTML elements that convey meaning about their content (e.g. <header>, <article>, <footer>) rather than generic <div>/<span>, improving accessibility, SEO, and code clarity
B
Correct Answer
Using HTML elements that convey meaning about their content (e.g. <header>, <article>, <footer>) rather than generic <div>/<span>, improving accessibility, SEO, and code clarity
Explanation
Semantic elements describe their purpose to browsers, assistive technologies, and search engines, improving accessibility and maintainability compared to generic containers.
Progress
52/100