Differences from HTML: Document Structure

Document Structure

//this example shows an XHTML document with a minimum of required tags

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Title of document</title>
</head>

<body>
  some content 
</body>

</html>
  • XHTML DOCTYPE is mandatory.
  • The xmlns attribute in <html> is mandatory.
  • <html>, <head>, <title>, and <body> are mandatory.

Differences from HTML: Document Structure — Structure map

Clickable & Draggable!

Differences from HTML: Document Structure — Related pages: