Introduction to HTML/XHTML

XHTML Conformance

  1. Must obey the XHTML DTDs.
  2. Root element must be html.
  3. The html must contain an xmlns pointing to the the XHTML namespace.
    <html xmlns="" xml:lang="en" lang="en">
  4. A DOCTYPE must appear before the html and point to the appropriate XHTML DTD.
  5. Cannot override any parameter entities in the DTD.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en" lang="en">
    <title>Virtual Library</title>
    <p>Moved to <a href=""></a>.</p>

José M. Vidal .

16 of 19