+ 3

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

20th Mar 2019, 10:22 AM
Vinayak Kolaki
Vinayak Kolaki - avatar
4 ответов
20th Mar 2019, 10:43 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
For html4 use: <meta http-equiv="Content-Type"content="text/html;charset=ISO-8859-1">
20th Mar 2019, 10:41 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
You can use a <meta> tag like this: <meta charset='utf-8'>
20th Mar 2019, 10:39 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
Html 5 uses utf-8 as default charset even if not defined... However, to define explicitly use meta tag with charset attribute
9th May 2019, 4:22 AM
DevAnand J
DevAnand J - avatar