Include Character Encoding in HTML



Character encoding is a method of converting bytes into characters. To validate or display an HTML document properly, a program must choose a proper character encoding.

Use the <meta> element, to set the charset attribute and specify the character encoding for the HTML document −

<!DOCTYPE html>
<html>
   <head>
      <meta charset = "UTF-8">
   </head>
   <body>
      <p>Click following link</p>
      <a href = "https://www.qries.com" target = "_self">Welcome to Qries</a>
   </body>
</html>
Updated on: 2020-03-03T05:23:51+05:30

147 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements