- To make text large in every browser
- To communicate the structure and hierarchy of content
- To insert a line break
- To create a hyperlink
Correct answer: B
- A — Incorrect: Headings have default styles, but their main purpose is structural and semantic.
- B — Correct: Headings organize content and help readers and assistive technologies understand its hierarchy.
- C — Incorrect: br creates a line break.
- D — Incorrect: a creates a hyperlink when appropriately configured.
Question 3: Which element is best for a paragraph of ordinary prose?
<p><br><hr><sup>
Correct answer: A — <p>
- A — Correct: p represents a paragraph.
- B — Incorrect: br creates a line break within content.
- C — Incorrect: hr represents a thematic break.
- D — Incorrect: sup represents superscript text.
Question 4: Which element should you normally use for a genuinely important warning?
<i><strong><small><sub>
Correct answer: B — <strong>
- A — Incorrect: i represents text in an alternate voice or conventionally distinguished text.
- B — Correct: strong communicates strong importance, seriousness, or urgency.
- C — Incorrect: small is intended for side comments and fine print, among other similar content.
- D — Incorrect: sub represents subscript text.
Question 5: What is the difference between em and i?
- They always mean exactly the same thing
- em represents stress emphasis; i represents an alternate voice or conventionally distinguished text
- em creates a paragraph; i creates a heading
- i is used only for images
Correct answer: B
- A — Incorrect: They may look similar by default, but their semantic meanings differ.
- B — Correct: em marks stress emphasis, while i marks text in an alternate voice or another conventionally distinguished use.
- C — Incorrect: p represents paragraphs and h1 through h6 represent headings.
- D — Incorrect: img represents an image; i is a text element.
Question 6: Which element is appropriate for a short inline quotation?
<blockquote><q><cite><dfn>
Correct answer: B — <q>
- A — Incorrect: blockquote represents an extended quotation presented as a block.
- B — Correct: q is intended for short inline quotations.
- C — Incorrect: cite identifies the title of a creative work.
- D — Incorrect: dfn identifies a defining instance of a term.
Question 7: Which element represents an extended quotation?
<blockquote><mark><u><kbd>
Correct answer: A — <blockquote>
- A — Correct: blockquote represents an extended quotation presented separately from surrounding text.
- B — Incorrect: mark identifies text highlighted for relevance in the current context.
- C — Incorrect: u represents text with a non-textual annotation, such as a spelling annotation.
- D — Incorrect: kbd represents keyboard input.