<meta charset=utf-8> vs <meta charset="utf-8">

What is better supported in html 5?

2 answers

1
point

Both work fine. HTML parsers have treated these as identical for a decade now or so.

Answered over 6 years ago by Anne van Kesteren
  • Anne, welcome aboard. Looking forward to your contributions here. (Others: Anne is employed at Opera and often blogs about the obscure details of parsing HTML and other topics of interest for users of this site.) Doug over 6 years ago
1
point
<meta charset="utf-8"> 

I prefer it as it is better looking in a text editor - the quoted attribute will be syntax coloured and look "proper"

Answered over 6 years ago by Tony Crockford
  • Same here. I just can't get used to unquoted attributes. Doug over 6 years ago