Multiple choice xhtml

What XHTML code is "well-formed"?

  1. <p>A short paragraph</p>

  2. <p>A short paragraph</p>

  3. <p>A short paragraph</P>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In XHTML, tags must be properly nested - inner tags must close before outer tags close. Option A has closing after , which violates nesting. Option C uses which mixes case (XHTML is case-sensitive, lowercase required). Option B shows correct nesting: opens, then opens, then closes, then closes.