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

What is better supported in html 5?

2 answers


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

Answered over 7 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 7 years ago
<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 7 years ago by Tony Crockford
  • Same here. I just can't get used to unquoted attributes. Doug over 7 years ago