<u> Tag — HTML Technical Interview Questions & Answers

Text with an unarticulated, non-textual annotation (underline).

<u> Tag

  • Text with an unarticulated, non-textual annotation (underline).
  • <u> is the <u> HTML element. HTML uses this tag so the browser (and screen readers) know what the piece is, not only how it looks.
  • Board: <u>…</u> Put it in body. Check it in the browser. Attributes go on the opening tag.
  • Trap: wrong nesting or missing a required attribute. CSS can still style it — don’t pick a tag only because of default italics.
  • Interview: name the tag, one attribute if it has a famous one (href, src, alt, for, type), one mistake.

Technical Interview Tip: <u>: the <u> HTML element. Example: <u>…</u>

Code Examples for <u> Tag

<u> Tag — working example

<article>
  <h1>Reading notes</h1>
  <p>
    Prefer <strong>strong</strong> and <em>em</em> for meaning.
    Abbreviate <abbr title="HyperText Markup Language">HTML</abbr>.
  </p>
  <blockquote cite="https://example.com">
    <p>Practice aloud for thirty seconds.</p>
  </blockquote>
  <pre><code>console.log("hi");</code></pre>
  <p>Updated <time datetime="2026-08-05">Aug 5, 2026</time>.</p>
  <p><meter min="0" max="100" value="72">72%</meter></p>
  <address>Contact: coach@example.com</address>
</article>

<u> Tag — phrase and sectioning tags add meaning beyond plain div/span — use the element that matches the content.

How to Explain <u> Tag to an Interviewer

What is the <u> tag?

the <u> HTML element <u>…</u>

One common mistake?

wrong nesting or missing a required attribute