I have an issue with my website when validating it through [
w3.org...] validator.
The Warning is:
---------------------------------------------------
No Character encoding declared at document level
---------------------------------------------------
But when i check the response headers then there is such information available e.g.
---------------------------------------------------
Server: Apache
Accept-Ranges: bytes
Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding
Content-Encoding: gzip
---------------------------------------------------
So my question is that:
1) is it mandatory to mention Content-Type in <Head> section under <meta> tags even if i am
sending Content-Type through response headers ?
2) If there is not the above case then how i can validate my website page/ document through
W3C Validator without showing any error or warning.
Answers are welcomed and most needed.