Re: HTML5 and RDFa

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 UTC