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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...