[Javascript] OT: W3C
Hakan Magnusson
hakan at backbase.com
Wed May 26 11:54:18 CDT 2004
Not quite true, Shawn.
According to the specification the quotes are required, but you can use
either single- OR double quotes. I have found no documents claiming that
single quotes aren't allowed.
http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2
http://www.w3schools.com/xml/xml_attributes.asp
This is why I retracted my original comment.
Regards,
H
Shawn Milo wrote:
> Mike Dougherty wrote:
>
> Why?
>
> Because Hakan wrote:
>
> On Wed, 26 May 2004 10:47:55 +0000
> Hakan Magnusson <hakan at backbase.com> wrote:
>
>>You should use double quotes around HTML attributes, but apart from that it looks fine.
>>
>>Regards,
>>H
>>
>
>
> 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.
>
> Sloppy HTML, such as using single quotes or no quotes around attributes may work,
> but they are not "correct", like poor grammar. At the moment, most major browsers
> accomodate these errors, but the way of web content is increasingly going toward
> different platforms, such as handheld computers and phones, braille displays for the
> blind, and other non-PC browsers. These browsers, sometimes included in a device
> with an embedded OS and software, will not be able to handle all of the variations
> of bad HTML out there. That is part of the impetus for XHTML, which is really just
> HTML, but with stricter syntax enforcement.
>
> Check out the W3C's site for more info, or you can e-mail me privately. I find
> coding to XHTML standards to be much more of a benefit than a hinderance.
>
> Shawn
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list