The character set
A character set is basically a list of characters recognized by computer hardware and software. It is represented by a number. Earlier ASCII was used as standard character set encoding for web pages. There were lots of character encoding problems that were almost solved after the arrival of HTML5 and XML. JavaScript provides support for different types of languages and their characters. The character set attribute shows the character encoding in external files. For HTML5, there is a default character set encoding is UTF-8.
There are some common values of character set encoding such as the following:
- ISO-8859-1: This is used to encode the Latin alphabet
- UTF-8: This is used for Unicode encoding that is compatible with ASCII
For example, ...
Get Web Developer's Reference Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.