Multiple choice

Find the correct option in case of XHTML.

  1. <input checked>

  2. <input checked = “checked”>

  3. <input checked = “Ten”>

  4. None of these

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

XHTML requires all attributes to have explicit values, unlike HTML's minimalist syntax. The checked attribute must be written as checked="checked" (or checked='checked') to be valid XHTML, following XML's stricter well-formedness rules.