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

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

    Use for web browsers when using HTML5.

    Use when using HTML4 or XHTML, or for outdated dom parsers, like DOMDocument in php 5.3

提交回复
热议问题