-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
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, if your frontend page is in Spanish, and you do not use the character set property in your page, then it will not show some special characters in Spanish clearly. For this, you must declare a character set property in the top <head> tag...
Change the font size
Change margin width
Change background colour