What is the Top Level Structure of an XHTML Document

Q

What is the Top Level Structure of an XHTML Document? - XHTML 1.0 Tutorials - Document Structure and Head Level Tags

✍: FYIcenter.com

A

The top level structure of a XHTML document consists of three parts:

  • XML processing instruction - Provides XML version information and character set declaration.
  • Document type declaration - Provides the document type and version information, as well as the URI referring to the DTD that matches the type and version.
  • HTML element - Provides the contents of the XHTML document. The HTML element is defined with the "html" tag.

The following tutorial sample shows you how the XHTML top level structure looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
 (Second level structure)
</html>

2007-05-12, 4582👍, 0💬