×

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 <br> tag

HTML is referred to as Hyper Text Markup Language, which is the most popular language for creating Web pages. HTML explains the construction of a Web page. It contains a...

4 minutes read.

HTML Nested Table

HTML nested table refers to a table that is created inside another table. The table is in the form of rows and columns. From left to right are called horizontal rows,...

5 minutes read.

HTML Reset Button

The HTML reset button is used to reset all values in the form. It clears all input fields. Reset is the value of the type attribute of the button element. The...

6 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 <select> tag

This tag helps in making the drop-down list on the web page. This is highly used in HTML forms for taking the input from user. You can use the id attribute...

3 minutes read.

HTML 5 Tutorial

What is HTML5? HTML5 is a programming language which stands for the acronym Hyper Text Markup Language 5. It is program that enables the appearance of web pages to be changed, as well as changes...

5 minutes read.

How to insert spaces/tabs in text using HTML/CSS

What is HTML? HTML or HyperText Markup Language is used to design web pages. It was released in 1993. The file extension name for HTML file is “.html”. An HTML file...

4 minutes read.

HTML Lists

HTML List HTML lists are used to specify data sets. All lists can include one or more elements from the list. HTML lists are available in three different types: Ordered List or...

4 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.

How to add Google Translate Button on your Webpage?

Google translator is a multi-language translator used for translating the webpage. Google develops it. In today's digital age, it is essential because information is available worldwide in some specific language...

5 minutes read.

How to Create a Portfolio Gallery using HTML and CSS?

First, before starting this, the user should know some of the basics of HTML and CSS to create a portfolio gallery. To add more functionality to the website, we can also...

7 minutes read.

HTML <u> tag

Underline Element/Tag: The u tag in html is used to specify the important text or phrase by underline. In earlier HTML versions, this element was known as the "Underline" element, and...

5 minutes read.

CSS Clearfix

CSS Clearfix: A clearfix (or clear float) in CSS is for a component to clear or fix the child component, so we don’t need to insert additional markup. The clear...

4 minutes read.

HTML Anchor

HTML Anchor The HTML anchor tags define a hyperlink that links to other pages on one page. It can create hyperlinks to any web page and files, locations or any other...

3 minutes read.

HTML Unordered List

In HTML, we have <ul> tag which defines the unordered list. And it is also known as bulleted list, because as we know it is not ordered list therefore it...

2 minutes read.

What does HTML stand for?

HTML stands for Hyper Text Markup Language. We use this markup language to design a web page. Web browsers use this language to showcase text, videos, images, audio and other...

6 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.

HTML5 Button Tag

HTML Button Tag The < button > tag is used on the webpage to construct a clickable button inside the HTML. Within the < button>....</button > tag, we can place content...

2 minutes 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.