Character Set: Charset Attribute

To inform the web browser which character set is being used in the page, it must be specified in the <meta> tag:

For HTML4:

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

For HTML5:

<meta charset="UTF-8">

If a browser detects ISO-8859-1 in a web page, it defaults to ANSI, because ANSI is identical to ISO-8859-1, with the exception that ANSI has 32 extra characters.

Back button Table of Contents Next button