RDFa DTD question

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
User avatar
MikeGale
Rank VI - Professional
Posts: 726
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

RDFa DTD question

Post by MikeGale »

Hi,

I just checked out a new web site design from a specialised news organisation. (Not my work.)

The content appears to be produced by Drupal.

The Doctype "fails" in CSE 12.11, with a warning.

What should it be?

Message given:
[65] This document's DOCTYPE is not a recognized DOCTYPE and may not be valid. Note that most DOCTYPEs are treated as being case-sensitive. The unrecognized DOCTYPE is: "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">". See the description of flag 65 in the documentation for more information and the list of recognized DOCTYPEs.
i.e. the Doctype used is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN

The document is not declared as XHTML. (most online content refers to (X)HTML 5 to some degree, this may be an earlier version...)

Flag 65 notes mentions <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> (New 20100218) but no HTML version. (To my mind HTML, as opposed to XHTML, doesn't make much sense for RDFa...)
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: RDFa DTD question

Post by Albert Wiersch »

Hi Mike,

I believe the recommended DOCTYPE would be this:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
I've added some new RDFa DOCTYPEs to the recognized list for the next update of CSE HTML Validator. Thanks for bringing this to my attention!
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply