Horje

How to add HTML <meta> charset Attribute on HTML <meta> Tag

Specify the character encoding for the HTML document.

Definition and Usage

The charset attribute specifies the character encoding for the HTML document.

The HTML5 specification encourages web developers to use the UTF-8 character set, which covers almost all of the characters and symbols in the world!


Browser Support

Syntax

<meta charset="character_set">

Attribute Values

Value Description
character_set Specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set!
index.html
Example: HTML
 <head>
  <meta charset="UTF-8">
</head> 

Output should be:

How to add HTML <meta> charset Attribute on HTML <meta> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin