Every Attribute Requires a Value

Additionally, there were attributes in HTML that previously didn’t require a value:

<input type=”checkbox” checked>
<dl compact>

Both checked and compact are examples of “minimized” attributes. Because they didn’t require a value; it was simply enough to declare the attribute and then carry on. However, XHTML mandates that a value must be supplied for all attributes. For “minimized” attributes, they can be easily expanded like so:

<input type=”checkbox” checked=”checked”>
<dl compact=”compact”>

This is a small distinction but one that’s integral to ensuring that your code remains valid.