Curriculum ▸ HTML Zero → Mastery ▸ Lesson 21: Underlined Text (<u>) Foundations

Lesson 21 — Underlined Text <u>

Learning Goals

Part 1 — What is <u>?

The <u> element underlines text. Historically it was used for emphasis, but today it usually indicates non-textual annotations like misspellings or special names.

Part 2 — Example

<p>This is <u>underlined text</u>.</p>
<p>Misspelled: <u>recieve</u></p>

Result: The text appears underlined, but may confuse users if overused, since links are underlined too.

Part 3 — Best Practices

Part 4 — Common Mistakes

Quick Quiz

  1. What does <u> do?
  2. Why should underlining be avoided in most cases?
  3. What is a better alternative for emphasis than <u>?
Sample Answers
  • It underlines text.
  • Because underlines usually indicate links, which can confuse users.
  • Use <em> or <strong>.

Mini Project — Spellcheck Demo

Create a short paragraph with three intentionally misspelled words. Wrap them in <u> to simulate a spellchecker’s underlines.

Lesson 21 Dictionary

<u> (Underline)
Marks text with an underline, typically for annotations or misspellings. Should not be used for emphasis.