21. Which HTML5 element is used for independent, self-contained content?
- a) <section>
- b) <article>
- c) <div>
- d) <content>
Answer: B - The <article> element specifies independent, self-contained content.
22. Which HTML5 element represents a section of navigation links?
- a) <links>
- b) <nav>
- c) <navigation>
- d) <menu>
Answer: B - The <nav> element is used for major navigation blocks.
23. Which HTML5 element is used for side content aside from main content?
- a) <sidebar>
- b) <aside>
- c) <side>
- d) <div class="sidebar">
Answer: B - The <aside> element represents content indirectly related to main content.
24. Which HTML5 element defines self-contained media content?
- a) <media>
- b) <figure>
- c) <picture>
- d) <embed>
Answer: B - The <figure> element can contain images, diagrams, etc. with optional <figcaption>.
25. Which HTML5 element defines the main content of a document?
- a) <main>
- b) <content>
- c) <body>
- d) <primary>
Answer: A - The <main> element contains the dominant content of the document.
26. Which HTML5 element defines a header for a document or section?
- a) <head>
- b) <header>
- c) <heading>
- d) <top>
Answer: B - The <header> element represents introductory content.
27. Which HTML5 element defines a footer for a document or section?
- a) <bottom>
- b) <footer>
- c) <end>
- d) <foot>
Answer: B - The <footer> element contains footer information.
28. Which HTML5 element defines a thematic grouping of content?
- a) <group>
- b) <section>
- c) <theme>
- d) <div>
Answer: B - The <section> element defines a thematic grouping.
29. Which HTML5 element defines marked/highlighted text?
- a) <highlight>
- b) <mark>
- c) <strong>
- d) <em>
Answer: B - The <mark> element represents text highlighted for reference.
30. Which HTML5 element defines a date/time?
- a) <date>
- b) <time>
- c) <datetime>
- d) <calendar>
Answer: B - The <time> element represents a specific period in time.
31. Which HTML5 element defines progress of a task?
- a) <progress>
- b) <meter>
- c) <status>
- d) <loading>
Answer: A - The <progress> element shows completion progress of a task.
32. Which HTML5 element defines scalar measurement within a known range?
- a) <progress>
- b) <meter>
- c) <range>
- d) <scale>
Answer: B - The <meter> element represents a scalar measurement.
33. Which HTML5 element defines a dialog box or window?
- a) <dialog>
- b) <popup>
- c) <modal>
- d) <window>
Answer: A - The <dialog> element defines a dialog box or subwindow.
34. Which HTML5 element defines a visible heading for <details> element?
- a) <heading>
- b) <summary>
- c) <title>
- d) <label>
Answer: B - The <summary> element defines a visible heading for <details>.
35. Which HTML5 element defines additional details that can be toggled?
- a) <details>
- b) <extra>
- c) <toggle>
- d) <accordion>
Answer: A - The <details> element creates a disclosure widget.
36. Which HTML5 element defines a caption for a <figure> element?
- a) <caption>
- b) <figcaption>
- c) <legend>
- d) <title>
Answer: B - The <figcaption> element defines a caption for <figure>.
37. Which HTML5 element defines a container for external content?
- a) <embed>
- b) <object>
- c) <external>
- d) <iframe>
Answer: D - The <iframe> element embeds another HTML page.
38. Which HTML5 element defines a container for multiple image resources?
- a) <picture>
- b) <images>
- c) <gallery>
- d) <multimedia>
Answer: A - The <picture> element allows responsive image loading.
39. Which HTML5 element defines a container for SVG graphics?
- a) <svg>
- b) <canvas>
- c) <graphic>
- d) <vector>
Answer: A - The <svg> element defines a container for SVG graphics.
40. Which HTML5 element defines a container for dynamic graphics?
- a) <svg>
- b) <canvas>
- c) <animation>
- d) <graphics>
Answer: B - The <canvas> element is used to draw graphics via scripting.