Character Encoding in HTML
×
Home Courses Community Support
Character Encoding in HTML

Character encoding (character set) in HTML tell the browser which character set to use. It is a method which convert bytes into characters. While working on HTML, you need to choose exact encode type to display the page properly.
 

The most common character set is ASCII. Initially it was used for HTML document. Later, from HTML2.0 to HTML 4.01 standard was ISO-8859-1. Now for HTML 5 the standard is UTF-8.
 

UTF-8 solve many character encoding problems.
 

Character set is used in head tag. Use below syntax to use it in your code-

<head>
<meta charset="UTF-8">
</head>

 

enlightenedTo sent URL over internet only ASCII character set is available. If URL contain characters then it replace them with special characters % followed by two hexadecimal digits i.e. space in URL replaces with %20. 

 

 

← Preview

HTML Entities and Symbols

Next →

Adding Audio and Video in HTML

NOTES

Our mission is to provide highly effective and quality education via innovative solutions. Geeksdemy look forward to bridge the gap between in-demand technology and academics in order to deliver innovative, easy, interesting and affordable learning across the Globe.

Courses

  • Python
  • Game Development with Unity 3D
  • Arduino
  • PCB & Circuit Designing
  • Robotics and Embedded C
  • 8051/8052 Embedded Systems
  • QuadCopter & UAV
  • MATLAB with Robotics
  • Raspberry Pi
Learn On the Go!
Get the Android App
Get the iOS App