What is HTML Encoding?
To display an HTML page correctly, a web browser must know which character encoding to use.
ASCII was the first character encoding standard . ASCII defined 128 different alphanumeric characters that could be used on the internet: numbers (0-9), English letters (A-Z), and some special characters like ! $ + - ( ) @ < > .
ANSI and ISO-8859-1 were so limited so HTML 4 also supported UTF-8.
HTML charset Attribute
To display an HTML page correctly a web browser must know the character set used in the page and
|<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">|
ASCII Character Set
ASCII uses the values from 0 to 31 for control characters. It uses the values from 32 to 126 for letters, digits, and symbols and it does not use the values from 128 to 255.
ANSI Character Set (Windows-1252)
ANSI is identical to ASCII for the values from 0 to 127. It has a proprietary set of characters for the values from 128 to 159.It is identical to UTF-8 for the values from 160 to 255.
ISO-8859-1 Character Set
8859-1 is identical to ASCII for the values from 0 to 127. 8859-1 does not use the values from 128 to 159. 8859-1 is identical to UTF-8 for the values from 160 to 255.
@charset CSS Rule
You can use the CSS @charset rule to specify the character encoding used in a style sheet:
Tech writer at newsandstory
Total 329 views