×

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 &lt;datalist >Tag

The autocomplete feature in HTML files is provided by the <datalist> tag. It can be used in conjunction with an input tag to enable users to quickly fill out form...

4 minutes read.

HTML <summary> tag

When we simply want to show the primary heading or topic name of hidden detailed material to users, then we can achieved this by using the summary tag. This makes it...

2 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 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 <strike> tag

The HTML <strike> tag is used to specifies strikethrough text. The tag is deprecated now and <del> tag is used in HTML files instead of it. All the global and...

2 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 <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 Canvas

HTML Canvas: Using JavaScript, the < canvas > tag in HTML is used for drawing graphics on web page. It can be used to draw routes, boxes, text, gradient, and...

3 minutes read.

HTML <style> tag

The section of information that we want to style is contained in html style tag. It includes CSS, which is used to design the text and images in the web page. Syntax: <head> <title>…………....

3 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 Ordered List

We use <ol> tag to make an ordered list in html. An ordered list is made to make a list of items in ordered form, ordered list can be either...

3 minutes read.

HTML <svg> tag

SVG is used to determine the vector-based graphics in XML format. What is SVG? We utilize SVG tag to specify visuals for the website. The attribute of SVG in a HTML document...

2 minutes read.

HTML City tag

HTML <City> tag HTML < cite > tag specifies a citation, a reference or title to a creative work, quoted content, books, websites, a research paper, a blog post, a painting,...

3 minutes read.

Difference between HTML and DHTML

Introduction to HTML HTML stands for Hypertext Markup Language. It is a standard web language used to create web pages and applications. HTML is used to define the structure and content...

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.

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 <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 <sup> Tag

The HTML sup element is used to describe one or more superscript contents. The sup tag shows a text which is presented above the regular line and half the length...

2 minutes read.

HTML Code Tag

The code tag in HTML is a phrase tag used to insert a piece of computer programming code. In HTML there is a separate tag named as <code> tag. Sometimes,...

3 minutes read.

Html &lt;center> Tag

The term HTML refers to Hyper Text Markup Language. The most widely used markup language for making web pages is HTML. A structure of web page is described in HTML....

3 minutes read.