homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Content-Type Issue When Validating Through W3C

5+ Year Member

Msg#: 4142614 posted 6:54 am on May 28, 2010 (gmt 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.



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

Msg#: 4142614 posted 8:11 pm on May 28, 2010 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved