×

HTML Charsets

In this tutorial, we are going to discuss about the charsets in the HTML.

The letters, numbers, and several other symbols are shown correctly by the web browser. All of this is made possible by the character set that a web browser must support. Different character encoding standards assign numbers to the character sets that can be used on the internet, depending on the character set or character encoding.

What do we do with them?

HTML Character Sets or HTML Encoding are other terms for HTML Charset. It is used to properly and correctly display an HTML page since a web browser must know which character set (character encoding) to use in order to display anything correctly.

ASCII: This character encoding was developed by the American Standard Code for Information Interchange (ANSII). Programming in C/C++ uses this character encoding. It features 128 alphanumeric characters, including the letters A through Z and (a through z), as well as certain unique symbols like + - * / () @ etc.

ANSI ( Windows-1252 ): The character encoding developed by the American National Standards Institute (ANSI) supported 256 characters. Microsoft Windows uses it as the default character set.

ISO-8859-1: This character set, which also supports 256 characters, is used by default in HTML4. Character sets that are considered standard for various alphabets and languages are determined by the International Standards Organization (ISO). Along with numerals and English capital and lowercase letters, it also includes certain unique characters.

UTF-8: In reaction to the limitations and incompatibility of the ISO-8859 character-sets in multilingual scenarios, the Unicode Community created the UTF-8 and UTF-16 standards. There are all of the punctuation and character symbols. UTF-8 is a character encoding with variable width that supports nearly all of the world's characters and symbols. ANSI (Windows-1252), the initial Windows character set, supported 256 unique character codes.

HTML 4 made use of the ISO-8859-1 character set. This character set might additionally handle 256 different character codes.

Web browsers must be aware of the character encoding standard used in the HTML page, which we demonstrate below.

Why is UTF 8 enabled in HTML4?

Because ANSI and ISO-8859-1 were so restrictive, HTML 4 additionally supported UTF-8. HTML5's default character encoding is UTF-8.

Examples:

The HTML4 UTF-8 syntax is shown below:

< meta http-equiv = " Content-Type " content = " text/html; charset = ISO-8859-1 " >
The HTML5 UTF-8 syntax is shown below:
< meta charset = " UTF-8 " >

Related Topics

HTML <script> Tag

For embedding a client -side script, we use script tag in html tag. This <script> tag can be used for containing scripting statements. It can also point another external script file...

2 minutes read.

HTML Paragraphs

In html, there are some elements which starts with new line and one of them is paragraph. Which is said to be a block of text. In html <p> tag...

4 minutes read.

HTML Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

How to add JavaScript to HTML

JavaScript is one of the most important languages today. It is a high-level, interpreted, lightweight programming language that makes web pages more interactive. It is a language of the web....

5 minutes read.

HTML &lt;blink> Tag

In HTML, the blink tag is used to create the text which flashes. The blink tag is an inline element in HTML. It is observed that the blink tag used...

2 minutes read.

HTML <table> tag

The Table element If we want to show the data and information in a two-dimensional table with rows and columns, then we can achieve this by using the HTML element <table>. Syntax: <body> <table> <thead> <tr> <thcolspan="#">………….</th> </tr> </thead> <tbody> <tr> <td>……….</td> <td>……….</td> </tr> </tbody> </table> </body> Example: <!DOCTYPE...

9 minutes read.

HTML Forms

Forms are required when we want to collect data from the user. Html forms consists of different fields to take user inputs such as: input, text area, checkbox, password, radio...

4 minutes read.

How to change font in HTML

To give style to the content of your website, you may change the font of the text and make your website look attractive to the user. There are several methods which...

4 minutes read.

HTML5 Formatting

HTML Formatting HTML Formatting is a method of text formatting for a better appearance and look. HTML allows us to format text without using the CSS. HTML includes a lot of formatting tags....

6 minutes read.

HTML Audio

HTML AUDIO: HTML5 provides a method to embed the audio file into a webpage by using HTML5. Before HTML5 audio files is used to play on the browser with the help of...

1 minute read.

HTML <video> Tag

The Video tag in HTML is used to play video on a media player on the web page. We can also insert an audio by the video tag, but audio...

6 minutes read.

Html Wbr Tag

The Line Break Opportunity element A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the...

2 minutes read.

HTML Elements

An HTML element is nothing but a starting tag and then some content and then the closing tag. So we can say HTML elements is everything from the starting tag...

3 minutes read.

HTML &lt;body> alink Attribute

HTML <body> alink Attribute What is HTML? The HTML or HyperText Markup Language is used to design web pages. The file extension name for HTML file is ".html". It was released in...

2 minutes read.

HTML Video

HTML VIDEO: HTML5 has introduced the <video> tag to embed video into the webpage directly without using the plug-ins.   Syntax: <video attributes >     <source src="address" type="video/mp4">     Your browser does not support the video tag.   </video> <video width="320" height="240" controls>     <source src="mountain.mp4" type="video/mp4">     Your browser does not support the video tag.   </video> Output: ← Prev ...

1 minute read.

HTML Links

It consist of anchor element which is used to create a link between a source anchor and destination anchor. The anchor tag can be embedded between text, image, video or...

2 minutes read.

HTML <address> Tag

Hyper Text Markup Language, HTML is the best markup language for creating Web pages. HTML consists of a wide variety of elements. In all of these elements, one element is...

4 minutes read.

HTML Search Box

The HTML search box is also known as the search bar. It is an input text field that is used to search the content. If the users want to explore...

7 minutes read.

HTML Images

HTML has <img> tag to display image on the web pages or web application. This tag is an empty tag i.e. we don't have to close this tag while using. SYNTAX: <img src="source address" attributes="alt, height, width"> Example: <html>   <body>   <center>Image tag Example</center>   <img src="https://www.tutorialandexample.com/resources/images/favicon.png"    alt="tutorialandexample"/>   </body>   </html> Output: Image...

1 minute read.

HTML Hide Element

The HTML hide element is used to hide the element. We place the hidden attribute inside those elements which we want to hide. The hidden attribute is a Boolean attribute. The...

3 minutes read.