Google News
logo
HTML5 - Interview Questions
Please explain how to indicate the character set being used by a document in HTML5?
The character set being used by an HTML5 document is indicated using the charset attribute of a <meta> tag inside the <head> element of the HTML5 document :
 
<!DOCTYPE html>
<html>
  <head>
     …
     ...
    <meta charset="UTF-8">
     …
     …
  </head>
  <body>
   ----
   ----
  </body>
</html>
Advertisement