html - meta charset vs document encoding -


when create html document why still necessary use meta tag charset="utf-8" attribute within html code when html document saved using utf-8 encoding? isn't setting same encoding twice? answers.

the charset of resource transferred on http defaults iso-8859-1 unless charset override has been specified in content-type header (link). thus, have to specify document charset in html if different iso-8859-1, browser parse (and display) document properly.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -