homepage Welcome to WebmasterWorld Guest from 54.226.168.96
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Content-Type Issue When Validating Through W3C
webexpert2u




msg:4142616
 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.

 

rocknbil




msg:4143211
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved