|
Posted by dorayme on 11/30/05 04:15
> From: David Dorward <dorward@yahoo.com>
>
> dorayme wrote:
>
>> I have noticed that type=hidden is often written without quotes.
>> Is this so, or would it be better practice to use quotes as in
>> type="hidden"?
>
> In certain cases, authors may specify the value of an attribute without
> any quotation marks. The attribute value may only contain letters (a-z
> and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII
> decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal
> 58). We recommend using quotation marks even when it is possible to
> eliminate them.
>
> -- http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
>
OK, so it can be strictly ok not to quote; but best to do anyway
so as not to have to remember which chars actually bring in the
requirement. Thank you DD and rf.
--
dorayme
Navigation:
[Reply to this message]
|