HTML and CSS Reference
In-Depth Information
xmlns="http://www.w3.org/1999/xhtml"
Required for XHTML only . In an XHTML document, this declares the XML namespace
for the document.
Example (HTML5)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document Title</title>
</head>
<body>
<p>Content of document . . . </p>
</body>
</html>
Example (XHTML)
<!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" xml:lang="en"
lang="en">
<head>
<title>Document Title</title>
</head>
<body>
<p>Content of document . . . </p>
</body>
</html>
Search WWH ::




Custom Search