<meta charset=“utf-8”> vs <meta http-equiv=“Content-Type”>
问题 In order to define charset for HTML5 Doctype , which notation should I use? Short: <meta charset=\"utf-8\" /> Long: <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> 回答1: 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. 回答2: Both forms of the meta charset declaration are equivalent and should work the same across browsers. But, there are a few things you