Choosing a W3C valid DOCTYPE and charset combination?
Posted
by George Carter
on Stack Overflow
See other posts from Stack Overflow
or by George Carter
Published on 2010-03-01T02:06:11Z
Indexed on
2010/04/22
9:03 UTC
Read the original article
Hit count: 264
I have a homepage with the following:
<DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
My choice of the DOCTYPE "html" is based on a recommendation for html pages using jQuery. My choice of charset=utf=8 is based on a recommendation to make my pages readable on most browsers. But these choices may be wrong.
When I run this page thru the W3C HTML validator, I get messages you see below. Any way I can eliminate the 2 errors?
! Using experimental feature: HTML5 Conformance Checker.
The validator checked your document with an experimental feature: HTML5 Conformance Checker. This feature has been made available for your convenience, but be aware that it may be unreliable, or not perfectly up to date with the latest development of some cutting-edge technologies. If you find any issue with this feature, please report them. Thank you.
Validation Output: 2 Errors
1. Error Line 18, Column 70: Changing character encoding utf-8 and reparsing.
…ntent-Type" content="text/html; charset=utf-8">
2. Error Line 18, Column 70: Changing encoding at this point would need non-streamable behavior.
…ntent-Type" content="text/html; charset=utf-8">
© Stack Overflow or respective owner