Every Attribute Requires a Value
Additionally, there were attributes in HTML that previously didnâ€™t require a value:
<input type=â€checkboxâ€ checked>
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â€>
This is a small distinction but one thatâ€™s integral to ensuring that your code remains valid.
|copyright © dedserveronline.com|