Saturday, 18 June 2016

html5 - vs




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




  1. Short:



     

  2. Long:







Answer



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.


No comments:

Post a Comment