[thelist] Current recommendation for doctype and <html> tags.

Bill Moseley moseley at hank.org
Wed Sep 1 11:21:24 CDT 2010

On Wed, Sep 1, 2010 at 9:02 AM, Lee Kowalkowski <
lee.kowalkowski at googlemail.com> wrote:

> Well, HTML5 isn't a recommendation yet, but most of the spec is
> written with backwards compatability in mind - the reduced doctype was
> chosen because it still triggers "standards" mode in the older
> browsers.

Ok.   Plus the W3C validator issues a warning that the checker may not work
that well. ;)

> And I'm pretty sure you ought to keep the language attribute on the
> HTML tag e.g. <html lang="en">.

Yes, and as David showed adding the <meta charset="utf-8"> seems to be
needed for correct validation.

<!doctype html>
<html lang="en">
        <meta charset="utf-8">

Bill Moseley
moseley at hank.org

More information about the thelist mailing list