Skip to content

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

688 people viewed this

HTML Text Basics

  1. <sup>
  2. <sub>
  3. <small>
  4. <strong>

Correct answer: B — <sub>

  • A — Incorrect: sup represents superscript, such as the 2 in x².
  • B — Correct: sub represents subscript, such as the 2 in H₂O.
  • C — Incorrect: small is for side comments and fine print, not chemical notation.
  • D — Incorrect: strong represents importance, not subscript positioning.

Question 9: What does the cite element represent?

  1. Any person's name in a quotation
  2. The title of a creative work, such as a book or film
  3. A keyboard shortcut
  4. A highlighted search result

Correct answer: B

  • A — Incorrect: cite is not intended merely to mark a person's name.
  • B — Correct: cite identifies the title of a creative work.
  • C — Incorrect: kbd is used for keyboard input.
  • D — Incorrect: mark can identify text highlighted for relevance.

Question 10: Which statement about br and hr is correct?

  1. Both are paragraph elements
  2. br creates a line break, while hr represents a thematic break
  3. hr creates a hyperlink, while br creates a heading
  4. Both must have closing tags in HTML

Correct answer: B

  • A — Incorrect: Neither element represents a paragraph.
  • B — Correct: br creates a line break within text, and hr represents a thematic change in content.
  • C — Incorrect: a creates hyperlinks and h1 through h6 create headings.
  • D — Incorrect: br and hr are void elements and do not have closing tags in HTML.

16. Final Checklist

Before moving to Section 5, confirm that you can:

  • Choose heading levels based on content hierarchy.
  • Write separate paragraphs instead of relying on source-code line breaks.
  • Distinguish strong importance from bold visual attention.
  • Distinguish stress emphasis from alternate-voice text.
  • Use mark, small, sup, sub, ins, del, and u appropriately.
  • Use blockquote and q for quotations.
  • Identify abbreviations, definitions, and creative-work titles using appropriate elements.
  • Format technical examples using code, pre, kbd, and samp.
  • Use br for meaningful line breaks and hr for thematic breaks.

Next section: Section 5 — Global Attributes, IDs, Classes, Data Attributes and Contenteditable.

End of Section 4 — Codementrix HTML5 Mastery.

Rate this course

5.0 · 1 rating

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

Your stars