The following shows the source text with the DOCTYPE declaration at the top (highlighted in italics).
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Standards mode test</title>
<style type="text/css">
body { background: white; color: black; font-family: arial, sans-serif; font-size: 30px; }
p { font-size: 50%; }
h1 { font-size: 16px; }
</style>
</head>
<body>
<h1>Test file for Standards Mode</h1>
<div style="margin: 34px; width: 200px; padding: 66px; border: 6px solid teal;">
<p> Here is some text in a p in a div. </p>
</div>
<table border="1">
<tr><td><p>Here is some text...</p></td>
<td><p>...in a p tag</p></td>
</tr>
<tr><td>Here is some ...</td>
<td>... that's not.</td>
</tr>
</table>
</body>
</html>
It is generally a good idea to always serve your pages in standards mode - ie. always include a DOCTYPE declaration.
Version: $Id: Slide0190.html,v 1.2 2006/02/02 07:54:31 rishida Exp $