How do you indicate the character set being used by an HTML5 document? How does this differ from older HTML standards? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you indicate the character set being used by an HTML5 document? How does this differ from older HTML standards?

Concerned about the difference !!

5th Nov 2018, 7:58 PM
Sahil Kumar Sah
Sahil Kumar Sah - avatar
1 Answer
+ 4
In HTML5, just put <meta charset="UTF-8"> in the head of the page. For HTML4, you can use <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Reference: https://www.w3schools.com/tags/att_meta_charset.asp
6th Nov 2018, 2:37 AM
Kishalaya Saha
Kishalaya Saha - avatar