What XHTML code is "well-formed"?
-
<p>A short paragraph</p>
-
<p>A short paragraph</p>
-
<p>A short paragraph</P>
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.