Welcome to WebmasterWorld Guest from 107.20.75.63

Forum Moderators: incrediBILL

Message Too Old, No Replies

Content-Type Issue When Validating Through W3C

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

New User

5+ Year Member

joined:Dec 24, 2009
posts:9
votes: 0


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)

Senior Member

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

joined:Nov 28, 2004
posts:7999
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members