Meaning of a tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Meaning of a tag

What does the tag <metacharset=UTF8> do in html??

29th Jun 2020, 4:58 PM
Obinna
Obinna - avatar
5 Answers
+ 4
That meta tag basically specifies which character set a website is written with. Here is a definition of UTF-8: UTF-8 stands for (U from Universal Character Set + Transformation Format—8-bit) It is a character encoding capable of encoding all possible characters (called code points) in Unicode. Redirect for more info: https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/29869743/what-is-meta-charset-utf-8&ved=2ahUKEwjTr_PNwKfqAhWjUhUIHZNLBAoQFjAQegQICBAB&usg=AOvVaw01KopWk_VSZFcPr7mRXnu6
29th Jun 2020, 5:04 PM
Jella
Jella - avatar
+ 2
It is not necessary to include <meta charset="blah"> . As the specification says, the character set may also be specified by the server using the HTTP Content-Type header or by including a Unicode BOM at the beginning of the downloaded file. 
29th Jun 2020, 5:21 PM
Jella
Jella - avatar
+ 2
You're welcome
29th Jun 2020, 5:24 PM
Jella
Jella - avatar
+ 1
So is it compulsory to put it in your code?
29th Jun 2020, 5:10 PM
Obinna
Obinna - avatar
+ 1
Thanks Koder King💪🏽☺️
29th Jun 2020, 5:22 PM
Obinna
Obinna - avatar