W3C home > Mailing lists > Public > public-rdfa@w3.org > July 2010

Re: HTML5 and RDFa

From: Karl Dubost <karl+w3c@la-grange.net>
Date: Mon, 5 Jul 2010 18:01:14 -0400
Cc: RDFa Community <public-rdfa@w3.org>
Message-Id: <67487683-47EA-4032-8CE3-E421AD478AE4@la-grange.net>
To: Sergey Chernyshev <sergey.chernyshev@gmail.com>
A bit more in details. Our first answers were a bit dry.

Le 5 juil. 2010 à 14:26, Sergey Chernyshev a écrit :
> Here's the bug with the discussion on the topic:
> http://code.google.com/p/showslow/issues/detail?id=61

Reading your discussion

# Strict Mode

<!DOCTYPE html> will put your browser into strict mode.
See http://ejohn.org/blog/html5-doctype/

# Proposed syntax for adding RDFa 

careful it is a *working draft*
http://www.w3.org/TR/rdfa-in-html/

<!DOCTYPE html>
<html version="HTML+RDFa 1.1" lang="en">
  <head>
    <title>Example Document</title>
  </head>
  <body>
    <p>Moved to <a href="http://example.org/">example.org</a>.</p>
  </body>
</html>

# Syntax Style (aka pseudo-xhtml)

You can write mostly with xhtml syntax style without issues. 
But be aware that your document will not be necessary xhtml 
mime-type ready. So basically, you can in *html5*

* close your elements 
   ex: <br/>
* quote your attributes values
   ex:  <span title="html5 is flexible">html5<span>

There is a document explaining the syntax *if* you want to serve
documents using both text/html and application/xhtml+xml
careful it is a *working draft*
http://www.w3.org/TR/html-polyglot/




-- 
Karl Dubost
Montréal, QC, Canada
http://www.la-grange.net/karl/
Received on Monday, 5 July 2010 22:01:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 July 2010 22:01:34 GMT