Click to See Complete Forum and Search --> : Is it allowed to use "double quotes" in the code?!


tayiper
03-15-2007, 01:09 PM
I mean for example for XML declaration, is it allowed to use:

<?xml version="1.0" encoding="windows-1250" standalone="yes"?>

instead of:

<?xml version='1.0' encoding='windows-1250' standalone='yes'?>

I am just interested if it's allowed or not since I mostly use "double quotes" throughout the website.


thanks, tayiper

Mr Initial Man
03-23-2007, 08:24 PM
I've never had a problem with double quotes.

NogDog
03-24-2007, 04:45 PM
Both are allowed. The only restriction is that they are the same around any particular attribute value. You could even do this (though it's better for your sanity to be consistent):

<?xml version='1.0' encoding="windows-1250" standalone='yes'?>