<meta charset="utf-8"> vs <meta http-equiv="Content-Type">
Asked 07 September, 2021
Viewed 2K times
  • 61
Votes

In order to define charset for HTML5 Doctype, which notation should I use?

  1. Short:

    <meta charset="utf-8" /> 
    
  2. Long:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    

8 Answer