+ 1
What is meta charset? And what is UTF-8? I didnot understand the explanation given in the sololearn :(
2 ответов
+ 5
With Meta charset you specify the character encoding for the HTML document.
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.
Short:
<meta charset="utf-8" />
Long:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ 1
UTF-8 allows usage of all the characters be it alphabet or number of any lanugage around the world.
Its mainly used in web pages and email.
while checking your mail left click for page source and it will show the meta charset as above point.