Turinys

XHTML

Šablonas

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="lt" xml:lang="lt" dir="ltr">
 
<head>
	<title>XHTML dokumento pavadinimas</title>
	<meta http-equiv="content-type" content="application/xhtml+xml; encoding=utf-8" />
 
	<!-- CSS stilius -->
	<style type="text/css" media="all">/*<![CDATA[*/
 
		...
 
		/* Importuojamas išorinis CSS */
		@import "/kazhkur/kazhkas.css";
 
	/*]]>*/</style>
 
	<!-- Integruotas JavaScript kodas -->
	<script type="text/javascript">/*<![CDATA[*/
 
		...
 
	/*]]>*/</script>
 
	<!-- Išorinis CSS -->
	<link rel="stylesheet" type="text/css" media="print" href="/kazhkur/kazhkas.css" />
	<link rel="alternate stylesheet" media="screen, aural" type="text/css"
		title="Didelio kontrasto" href="/kazhkur/kazhkas.css" />
 
	<!-- Nuoroda 5 favicon'ą -->
	<link rel="shortcut icon" href="/kazhkur/kazhkas/favicon.ico" />
 
	<!-- Nuoroda į RSS -->
	<link rel="alternate" type="application/rss+xml" title="RSS feed'as"
		href="http://www.example.com/rss.xml" />
 
</head>
 
<body>
 
<p>Loren ipsum dolor sit amet...</p>
 
</body>
 
</html>

DOCTYPE'ai

XHTML 1.0 Strict

<!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

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

XHTML 2.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml2.dtd">

Taip pat reikia nurodyti ir XML Schema:

<html xmlns="http://www.w3.org/2002/06/xhtml2/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2/ http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd">