HTML Character Sets
A browser needs to know what character sets or character encoding to use. So that it can show the HTML page truely.
The browser needs to know what character set (character encoding) to use. This is required to display an HTML page correctly.
UTF-8 is the default character encoding for HTML5. However, it used to be different. ASCII was the character set before it. And ISO-8859-1 was the default character set from HTML 2.0 to HTML 4.01.
However, there were still problems with encoding, and when UTF-8 appeared with HTML5 and XML, many issues were solved.
Let's see more details about character sets.
ASCII
ASCII was the first character encoding standard, which is also called a character set. It is abbreviated from American Standard Code for Information Interchange.
For each storable character, ASCII defined a unique binary number to support the upper and lower case alphabet (a-z, A-Z), the numbers from 0-9, and special characters. It is originally based on the English alphabet and encodes 128 characters into a 7-bit binary integer. This works because all computer information is recorded as binary ones and zeros (01000101) in electronics.
Below, you can see an ASCII chart.

The biggest problem for ASCII is that it didn't have non-English letters. It is still in use, especially in mainframe computers.
Click here to see more about ASCII.
ANSI
ANSI, which was also called Windows-1252, was the default character set for Windows up to Windows 95. It is an extension for ASCII, which adds international characters. It supported 256 characters using a full byte (8-bits).
ANSI was supported by all the browsers since it was announced as the default character set of Windows.
ISO-8859-1
ISO-8859-1 became the default character encoding in HTML 2.0, as most countries use characters different from ASCII. It is also an extension to ASCII, just like ANSI, and it adds international characters. ISO-8859-1 also uses a full byte to represent twice as many characters as ASCII.
Click here to see more about ISO-8859-1.
HTML 4 character sets
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />If an HTML 4 page uses a different character encoding than ISO-8859-1, it must be defined in the <meta> tag.
HTML 4 character sets
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-8" />All HTML 4 processors support UTF-8.
HTML 5 character sets
<meta charset="UTF-8" />Place this tag as early as possible inside the <head> element to ensure the browser reads the encoding correctly.
Unicode UTF-8
UTF-8 is the default character encoding for HTML5.
As the character sets mentioned above are limited, the Unicode Consortium developed a Unicode Standard.
This Unicode Standard has almost all the characters, punctuations, and symbols used in the world.
In HTML, the charset attribute specifies the character encoding.
All HTML5 processors support UTF-8. Note that XML processors strictly require UTF-8 or UTF-16.
Practice
What is true about HTML character sets?