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

前端 未结 9 1234
后悔当初
后悔当初 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:45

    In HTML5, they are equivalent. Use the shorter one, it is easier to remember and type. Browser support is fine since it was designed for backwards compatibility.

提交回复
热议问题