HTML & CSS · Junior · Question 2 of 75
Which set contains only HTML5 semantic elements?
- ✓Correct answer:
<header>,<nav>,<main>,<article>,<footer> - 2
<div>,<span>,<section>,<b>,<i> - 3
<header>,<div>,<i>,<footer>,<span>
Explanation
Semantic elements describe the meaning of content: header, navigation, main content, a standalone article, footer. <div> and <span> are neutral containers with no meaning, while <b> and <i> are presentational (highlighting without importance). Semantics helps screen readers, search engines and code readability.