What is meta charset? And what is UTF-8? I didnot understand the explanation given in the sololearn :( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is meta charset? And what is UTF-8? I didnot understand the explanation given in the sololearn :(

20th Sep 2016, 8:02 AM
Sabbir H. Tareq
Sabbir H. Tareq - avatar
2 Answers
+ 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" />
20th Sep 2016, 8:44 AM
Filip Zirbo
Filip Zirbo - avatar
+ 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.
26th Sep 2016, 2:45 PM
Sanjai Mampala
Sanjai Mampala - avatar