UP PREVIOUS NEXT   Technologies Internet et Education, © TECFA
  5. Notes sur XHTML

5. Notes sur XHTML

XHTML ressemble d'abord beaucoup à HTML

Voici un exemple

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
  <head> 		<title>document test </title> </head> 
  <body>
		<h1>document test</h1>
		Voici un test!
  </body>
</html>

Pourquoi XHTML ?

Versions de XHTML

XHTML-1.0-Strict (Jan 2000)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

XHTML-1.0-Transitional

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

XHTML-1.0-Frameset

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

XHTML-1.1 (Juin 2001)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
               "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

XHTML-2.0 (working draft 2005)

<p src="w3c-logo" type="image/png, image/jpeg;q=0.2">W3C logo</p>

Utilisation non orthodoxe de XTHML


UP PREVIOUS NEXT -- TIE