Re: quotes around some attributes in forms



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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
.



Relevant Pages

  • 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: So what is the point of darwinports then?
    ... Most WPs call them 'smart quotes' now. ... What do the files look like in TeXShop, ... quotation marks look like proper `sexed' versions, ... printing an A5 booklet from a TeX source. ...
    (uk.comp.sys.mac)
  • Re: Unexpected quote marks in exports to tab-delimited files
    ... What you're calling double-quotes are quotation marks. ... not there in those cells, ... You can use that Text Write Program to write it without the quotes, ... Earl Kiosterud ...
    (microsoft.public.excel)
  • Re: i accidentally deleted office
    ... They merely indicate the word used is meant to convey a concept, and not a literal meaning. ... So don't be too concerned about quotes, they weren't intended to annoy you. ... Typically, quotation marks are used to denote a statement which is not the author's, or around words used satirically or in an ironic sense. ... While i have been unable to garner assistance with repairing office, i have had no trouble authenticating my copy of windows using the Genuine Advantage Validation System and recieving updates and support relevant to windowsxp. ...
    (microsoft.public.office.misc)
  • 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)