HTML Charset - Everything You Need to Know

HTML Charset - What is It and Why is It Important?

{tocify} $title={Table of Contents}

HTML Charset

HTML Charset

HTML Character Sets and HTML Encoding are other names for HTML Charset. It is utilized to display an HTML page properly and correctly because for displaying anything correctly, a web browser must know which character set (character encoding) to use.

HTML Character Encoding

There are different types of Character Encoding which are given below:

ASCII Character Set

ASCII stands for American Standard Code for Information Interchange. In HTML, the first ever character encoding standard is the ASCII standard. 

ASCII delivers 128 different alphanumeric characters that could be utilized on the internet: numbers (0-9), English letters (A-Z), and some special characters like! $ + - ( ) @ <> .

The major problem with ASCII encoding was it holds a limited range of characters. It contains mainly 128 characters.

ANSI Character Set

ANSI stands for American National Standard Institute. A character set standard, which is an extended version of the standard ASCII character set. 

It supports 256 characters set. ANSI is also named as Windows-1252, and it was the default character set for Windows up to Windows 95.

ISO-8859-1 Character Set

ISO-8859-1 was the default character encoding in HTML 2.0. It was also an extension of the ASCII standard with International characters. It also utilized full bytes (8-bits) to display characters.

UTF-8 Character Set

UTF-8 is a variable-width character encoding that surrounds almost all of the characters and symbols in the world. ANSI (Windows-1252) was the actual Windows character set, which supported 256 various character codes.

ISO-8859-1 was the default character set for HTML 4. This character set also supported 256 various character codes.

Why is UTF 8 also supported in HTML4?

Because ANSI and ISO-8859-1 were so limited, HTML 4 also supported UTF-8. The default character encoding for HTML5 is UTF-8.

UTF-8 syntax for HTML4:

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">{codeBox}  

UTF-8 syntax for HTML5: <meta charset="UTF-8">{alertSuccess}

Conclusion:

Friends, according to my expertise, I have written complete information to help you with “HTML Charset.” If this post is favourable for you or not, please tell me by commenting.

If you liked this post, do not forget to share it with your friends so they can get information about it.

You can ask us through comments if you still have questions or doubts, I will answer all your questions, and you can contact us for more information.

Please tell us through the comment section if you think we miss anything.

Post a Comment

If you have any problem please feel free to contact us by - AKASH TIMES

Previous Next

نموذج الاتصال