Re: quotes around some attributes in forms
- From: dorayme <dorayme@xxxxxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 13:15:36 +1100
> From: David Dorward <dorward@xxxxxxxxx>
>
> 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
.
- References:
- quotes around some attributes in forms
- From: dorayme
- Re: quotes around some attributes in forms
- From: David Dorward
- quotes around some attributes in forms
- Prev by Date: Re: multiple media players in one html page
- Next by Date: Re: Two columns using divs , problems with text/lists under it.
- Previous by thread: Re: quotes around some attributes in forms
- Next by thread: Re: quotes around some attributes in forms
- Index(es):
Relevant Pages
|