W3C home > Mailing lists > Public > public-vocabs@w3.org > August 2012

schema.org HTML doctype

From: Dan Brickley <danbri@danbri.org>
Date: Wed, 8 Aug 2012 22:54:55 +0200
Message-ID: <CAFfrAFo7F6B41ROyoDvvT2BehVUEwSdrUsXWhXqVeRmHqPtkyg@mail.gmail.com>
To: public-vocabs@w3.org
It has been suggested by a few folk that the schema.org site ought to
have an HTML5 doctype.

ie. <!DOCTYPE html>

Currently the top of pages looks like

"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

AFAIK nothing in the site's main page content is heavily XMLish,
although my preference is that each page ought to at least parse as
well-formed XML.

My inclination (and I have no strong expertise on the current
subtleties of this choice) would be to switch to the simpler <!DOCTYPE
html> doctype. Also to lose the xmlns= declaration, and then per
http://www.w3.org/TR/html-polyglot/#language-attributes to use both
xml:lang and lang, so the document has both an XML and HTML reading.
How does this sound? Am I missing any 'gotchas'?

Feedback welcomed.

Received on Wednesday, 8 August 2012 20:55:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:48:47 UTC