The XHTML WYSIWYG Editor For Desktop & Web Applications

XML Declaration


When XHTML is served as XML, it is good practice to use an XML declaration that identifies the version of XML being used.


This is an example of an XML declaration:

  1. <?xml version="1.0" encoding="UTF-8"?>

The XML declaration should appear before the DOCTYPE as shown below:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "">
  4. <html xmlns="">
  5. <head>
  6. <title>XHTML Reference</title>
  7. </head>
  8. <body>
  9. ...
  10. </body>
  11. </html>