What does meta charset do in an <html> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does meta charset do in an <html> tag?

In the <html> tag, I see an attribute as <html meta charset="utf-8">. I would like to know what it does and it's importance. please help.

23rd Nov 2017, 5:07 PM
Evans Teye
Evans Teye - avatar
1 Answer
+ 3
meta means metadata ( data about data) of a webpage charset means the character set used in the webpage <meta charset="UTF-8" /> Here meta tag is the container for metadata. The metadata contained in this tag is the character set used in the page, so charset attribute is used. The value of charset is UTF-8, so it will be used for all characters within this page
23rd Nov 2017, 5:26 PM
DAB
DAB - avatar