Problem Statement
Which of the following elements were introduced in HTML5?
Explanation
HTML5 introduced several new semantic elements such as article, section, header, footer, nav, and aside to make markup more meaningful and accessible. These elements improve SEO and accessibility by giving structure and meaning to web content. Older elements like center, font, and marquee were deprecated as they dealt with presentation, not structure.
Code Solution
SolutionRead Only
<!-- Example of new HTML5 semantic elements -->
<header>
<h1>HTML5 Features</h1>
</header>
<nav>
<a href="/">Home</a> | <a href="/about">About</a>
</nav>
<main>
<article>
<section>
<h2>Introduction</h2>
<p>HTML5 introduced many new semantic elements.</p>
</section>
</article>
</main>