Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Content-Type Issue When Validating Through W3C



6:54 am on May 28, 2010 (gmt 0)

5+ Year Member

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.


8:11 pm on May 28, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Yes, you need

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

or similar. Document encoding is not the same as server headers.

Featured Threads

Hot Threads This Week

Hot Threads This Month