<meta charset=“utf-8”> vs <meta http-equiv=“Content-Type”>

前端 未结 9 1085
后悔当初
后悔当初 2020-11-22 01:13

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

  1. Short:

     
             
    
    
            
9条回答
  •  星月不相逢
    2020-11-22 01:59

    There is some news based on Mozilla Foundation, and sitepoint

    Do not use this value (http-equiv=content-type) as it is obsolete. Prefer the charset attribute on the <meta> element.

提交回复
热议问题