Skip to content

Courses / HTML5 Mastery: Complete Beginner to Advanced Course / HTML Text Basics

683 people viewed this

HTML Text Basics

  1. To make text large in every browser
  2. To communicate the structure and hierarchy of content
  3. To insert a line break
  4. 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?

  1. <p>
  2. <br>
  3. <hr>
  4. <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?

  1. <i>
  2. <strong>
  3. <small>
  4. <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?

  1. They always mean exactly the same thing
  2. em represents stress emphasis; i represents an alternate voice or conventionally distinguished text
  3. em creates a paragraph; i creates a heading
  4. 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?

  1. <blockquote>
  2. <q>
  3. <cite>
  4. <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?

  1. <blockquote>
  2. <mark>
  3. <u>
  4. <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.

Question 8: Which element is appropriate for a chemical formula such as H₂O?

Rate this course

5.0 · 1 rating

Stars show on this course. Your written note stays private.

Your stars