Explicit Attribute Values
XML (and therefore XHTML) does not support attribute minimization
, the SGML practice in which certain attributes can be reduced to just the attribute value. So while HTML has many minimized attributes such as checked
and nowrap
, in XHTML, the values need to be explicitly declared as checked="checked"
and nowrap="nowrap"
. Table 8-2 lists the attributes that were minimized in HTML but require values in XHTML.
Table 8-2. Explicit attribute values
checked="checked” |
disabled="disabled” |
noresize="noresize” |
compact="compact” |
ismap="ismap” |
nowrap="nowrap” |
declare="declare” |
multiple="multiple” |
readonly="readonly” |
defer="defer” |
noshade="noshade” |
selected="selected” |
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.