[Javascript] OT: W3C

Hassan Schroeder hassan at webtuitive.com
Wed May 26 09:36:18 CDT 2004


Shawn Milo wrote:

> The reason for using double quotes around HTML attributes is that the
> W3C (http://www.w3.org/), the standards body which defines HTML, CSS, XHTML, etc., 
> has made that the standard.

citing <http://www.w3.org/TR/html4/intro/sgmltut.html#attributes>

	By default, SGML requires that all attribute values be
	delimited using either double quotation marks (ASCII decimal
	34) or single quotation marks (ASCII decimal 39). Single
	quote marks can be included within the attribute value when
	the value is delimited by double quote marks, and vice versa.

...unless you have another reference to the contrary... :-)

-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list