HTML Charset or HTML Character Set helps the web browsers to display an HTML page correctly.
The Character Set or Character Encoding has various different types, which are:
ASCII (American Standard Code for Information Interchange) was the first character encoding standard. This character encoding has 128 alphanumeric characters consisting of alphabets (A-Z), numbers (0-9) and some special characters like @, $, +, -, ( ) etc.
ANSI (American National Standard Institute) was an extended version of ASCII character set. It was the original windows character set and supported by 256 characters.
ISO-8859-1 Character Set
It was the default character set for HTML 4. Like ANSI it also supports 256 different character codes.
The Character Set UTF-8 includes almost all characters and symbols. It was developed because the ISO-8859-1 character sets are limited.
The charset Attribute
As I already told you HTML Character Set helps the web browser to display the HTML page correctly.
We need to specify the character set in the <meta> tag.
Here is how we can specify it.