XHTML5

The educational technology and digital learning wiki
Revision as of 19:33, 8 March 2013 by Daniel K. Schneider (talk | contribs) (Created page with "== Introduction == XHTML5 is an XML variant of HTML5. With respect to HTML5 it differs in three ways: * (True) XHTML5 must be served as XML, e.g. ''application/xhtml...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

XHTML5 is an XML variant of HTML5.

With respect to HTML5 it differs in three ways:

  • (True) XHTML5 must be served as XML, e.g. application/xhtml+xml or application/xml
  • You may add your own XML languages (cannot be done with HTML5)
  • Contents must be well-formed and (probably) valid.

As of March 2013, XHTML5 doesn't seem to be implemented, but I'd have to check this - Daniel K. Schneider (talk) 18:33, 8 March 2013 (CET)

Example

XHTML5 code may look like this:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta charset="utf-8" />
  <title>XHTML5</title>
 </head>
 <body>
  ... is preparing its comeback and it may even become stronger than before 
since after many many years IE explorer managed to implement XHTML 1...
 </body>
</html>
  • Notice the namespace declaration

Links

  • Thinking XML: The XML flavor of HTML5, 6 recommendations for developers using the next generation of the web's native language, IBM Developer works 2010. Basically it tells how to use XHTML5 in the same way that XHTML was used, i.e. just served as HTML....