What is the Second Level Structure of an XHTML Document

Q

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

✍: FYIcenter.com

A

The second level structure of an XHTML document consists of two parts:

  • Head element - Contains information about the current document, such as its title, keywords that may be useful to search engines, and other data that is not considered document content. The head element is defined with the "head" tag.
  • Body element - Contains the real content of the current document, including text, images, and other types data. The head element is defined with the "head" tag.

The following tutorial sample shows you how the HTML second 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>
 <head>
 (Head structure)
 </head>
 <body>
 (Body structure)
 </body>
</html>

2007-05-12, 4466👍, 0💬