The XHTML WYSIWYG Editor For Desktop & Web Applications

XML Declaration

Definition

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

Example

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. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title>XHTML Reference</title>
  7. </head>
  8. <body>
  9. ...
  10. </body>
  11. </html>