[html5] Which attributes can be unquoted?

Philip Taylor excors at gmail.com
Mon Mar 22 12:06:58 PDT 2010

On Mon, Mar 22, 2010 at 6:59 PM, Tae Sandoval Murgan <taecilla at gmail.com> wrote:
> Hello there:
> The HTML 4.01 specification describes which attributes can be
> unquoted, those are only such contain letters, digits, hyphens,
> periods, underscore, and colons[1].  HTML5 spec says: "Attribute
> values are a mixture of text and character references, except with the
> additional restriction that the text cannot contain an ambiguous
> ampersand", so are other characters allowed or the restriction is the
> same for HTML 4.01?

The HTML5 spec at http://whatwg.org/html#unquoted also says:

"[...] must not contain any literal space characters, any U+0022
QUOTATION MARK characters ("), U+0027 APOSTROPHE characters ('),
U+003D EQUALS SIGN characters (=), U+003C LESS-THAN SIGN characters
(<), U+003E GREATER-THAN SIGN characters (>), or U+0060 GRAVE ACCENT
characters (`), and must not be the empty string."

Philip Taylor
excors at gmail.com

More information about the Help mailing list