HTML Validator Warnings

naimish's Avatar
Invasive contributor
I am validating my HTML code through HTML Validator.

It's giving me below warning and no error, How to resolve this warnings ?
  1. <LI class=msg_warn id=W04> No Character Encoding Found! Falling back to UTF-8.
    None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.
    Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
  2. No Character encoding declared at document level
    No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.
    See this tutorial on character encoding for techniques and explanations.
naimish's Avatar
Invasive contributor
Hey Thanks, got it resolved. Just added below to the meta tags.

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />