I need help understanding what meta charset does in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help understanding what meta charset does in html

web development

27th Oct 2018, 3:40 PM
Kobby Dey
Kobby Dey - avatar
5 Answers
0
for pure english, it's ok without this decl for sites with, say chinese, because there are simplified chinese and tradition chinese, if you don't declare the charset, the browser will give you some unreadable codes. and, hth is right, utf8 is most commonly used because its universal and almost all language can be displayed correctly
27th Oct 2018, 4:59 PM
Gordon
Gordon - avatar
0
so is it for like language translation on the web?
27th Oct 2018, 5:04 PM
Kobby Dey
Kobby Dey - avatar
0
kind of, but the data already in correct language, so not translation actually it's for the visitor of a website, for their browsers to know follow which rules to find the characters to display for each code.
27th Oct 2018, 5:08 PM
Gordon
Gordon - avatar
0
oh ok
27th Oct 2018, 5:10 PM
Kobby Dey
Kobby Dey - avatar
0
there is an option called "encoding" in view in browsers, the different encoding are all the rules (charset), in the past (about 20 years ago), without meta data, if you encounter foreign language , you need to choose that manually
27th Oct 2018, 5:14 PM
Gordon
Gordon - avatar