You can use either double quotes or single quotes to enclose an attribute. Single quotes has special meaning. It means to eagerly apply normal substitution (special chars, attributes, macros, etc) to the value.
If you want to use a quote character in the value that uses the same character as the enclosure, prefix it with a backslash:
foo="ba\"zaar"
The value will become:
ba"zaar
-Dan