This META element defines the character set of the document.
The META element is placed inside the HEAD element.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
| Attribute | Value | Explanation |
|---|---|---|
| http-equiv=" " | Content-Type | - |
| content=" " | text/html; charset=ISO-8859-1 | most western European languages (English, French, Italian ...) |
| text/html; charset=US-ASCII | English | |
| text/html; charset=UTF-8 | every language |
ISO-8859-1
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
US-ASCII
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
UTF-8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>TAG index</title> </head> <body> </body> </html>