Horje
Why XHTML - <!DOCTYPE> Is Mandatory

An XHTML document must have an XHTML <!DOCTYPE> declaration.

The <html>, <head>, <title>, and <body> elements must also be present, and the xmlns attribute in <html> must specify the xml namespace for the document.


Example of XHTML - <!DOCTYPE>

Here is an XHTML document with a minimum of required tags:
index.html
Example: HTML
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Title of document</title>
</head>
<body>

  some content here...

</body>
</html> 






Category:
Web Tutorial
Sub Category:
HTML vs. XHTML
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference