How to include the 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>
      <meta charset = "UTF-8">
      <p>Click following link</p>
      <a href = "" target = "_self">Welcome to Qries</a>