HTML supports attribute minimization but XHTML does not. HTML allows these minimized attributes, but in XHTML, you cannot utilize them:
XHTML demands that attribute-value pairs must be written in full. Attribute names such as "selected" and "checked" cannot occur in elements without their value being specified. Unminimized attributes must be written in attribute-value sets, to be done the acceptable way: