You are here: Re: quotes around some attributes in forms « HTML « IT news, forums, messages
Re: quotes around some attributes in forms

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация