Re: quotes around some attributes in forms



> 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

.



Relevant Pages

  • Re: Mozilla color question
    ... dorayme wrote: ... If you google for saddlebrown, you will get both #fa8072 *and* ... Being an experienced Mac user, you might appreciate the method I ... are then obliged to strip one or both the quotes and add the semi ...
    (alt.html)
  • Re: Mozilla color question
    ... dorayme wrote: ... If you google for saddlebrown, you will get both #fa8072 *and* #8b4513. ... Being an experienced Mac user, you might appreciate the method I used: used the keyword in html/css and opened in Mac IE. Fired up the Mac Digital Color Meter that comes with Tiger and ran the eyedropper over it and Command Shift C. ... Side issue for Mac obsessives only: It pastes with the quotes and no semicolon, this particular format is a damn nuisance as you are then obliged to strip one or both the quotes and add the semi depending on the situation. ...
    (alt.html)
  • Re: quotes around some attributes in forms
    ... dorayme wrote: ... > I have noticed that type=hidden is often written without quotes. ... or would it be better practice to use quotes as in ... We recommend using quotation marks even when it is possible to ...
    (alt.html)
  • Re: Help min-height problem
    ... dorayme wrote: ... [quotes full OP post] ... I don't know which is worse, someone giving masses of code in a post and no url or someone quoting same and asking for one? ... Reminding you all about the UIP: http://improve-usenet.org/ ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: quotes around some attributes in forms
    ... dorayme wrote: ... The HTML specs state that attribute values that contain special characters ... I use quotes for every attribute value rather than relying on remembering ... Some browsers will barf on exactly the same value. ...
    (alt.html)