In XHTML 1.0 Strict do attribute values need to be surrounded with quotes?
问题 In XHTML 1.0 Strict do attribute values need to be surrounded with quotes? Example: <input type="text" id="username"/> And if so according to the standard can single quotes be used and possible mixed with double quotes? Example: <input type='text' id="username"/> 回答1: From the XHTML 1.0 spec, they must always be quoted. All attribute values must be quoted, even those which appear to be numeric. From the HTML 4 spec, single quoted attributes are allowed. By default, SGML requires that all