quoting HTML attribute values

Posted by Flavius on Stack Overflow See other posts from Stack Overflow or by Flavius
Published on 2010-05-22T10:25:40Z Indexed on 2010/05/22 10:30 UTC
Read the original article Hit count: 153

Filed under:
|
|

Hi

I know the spec allows both ' and " as delimiters for attribute values, and I also know it's a good practice to always quote.

However I consider " being the cleaner way, maybe it's just me having grown up with C and C++' syntax.

What is the cleanest way of quoting attribute values and why? Please no subjective answers.

© Stack Overflow or respective owner

Related posts about html

Related posts about XHTML