Horje
Why XHTML - <!DOCTYPE> Is Mandatory | HTML vs. XHTML Code
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> 




Read Full::
HTML vs. XHTML Code
Category:
HTML Code
Sub Category:
HTML vs. XHTML Code
Uploaded:
6 months ago
Uploaded by:
Admin
Views:
2

Related Articles
What is HTML Versus XHTML HTML vs. XHTML Code
What is XHTML? HTML vs. XHTML Code
Why XHTML? HTML vs. XHTML Code
What is The Most Important Differences from HTML HTML vs. XHTML Code
Why XHTML - <!DOCTYPE> Is Mandatory HTML vs. XHTML Code
Why XHTML Elements Must be Properly Nested HTML vs. XHTML Code
Why XHTML Elements Must Always be Closed HTML vs. XHTML Code
Why XHTML Empty Elements Must Always be Closed HTML vs. XHTML Code
Why XHTML Elements Must be in Lowercase HTML vs. XHTML Code
Why XHTML Attribute Names Must be in Lowercase HTML vs. XHTML Code
Why XHTML Attribute Values Must be Quoted HTML vs. XHTML Code
Why XHTML Attribute Minimization is Forbidden HTML vs. XHTML Code
How to Validate HTML With The W3C Validator HTML vs. XHTML Code

Single Articles
Example of XHTML - <!DOCTYPE>

Share on: