Top Level Structure of XHTML 1.0 Documents

Q

What is the Top Level Structure of an XHTML 1.0 Document?

✍: FYIcenter.com

A

The top level structure of a XHTML 1.0 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>

 

XHTML 1.0 Document Types

Number of Tags Defined in XHTML 1.0?

Introduction of XHTML 1.0

⇑⇑ HTML Tutorials

2023-11-06, 1536🔥, 0💬