Hey folks,
Something really doesn't make sense to me. Maybe you guys can figure
it out:
Code Set 1:
<---START CODE--->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%">
<tr>
<td valign="middle">aaa</td>
</tr>
</table>
</body>
</html>
<---END CODE--->
Code Set 2:
<---START CODE--->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%">
<tr>
<td valign="middle">aaa</td>
</tr>
</table>
</body>
</html>
<---END CODE--->
The only difference between these sets of code is the "<!DOCTYPE HTML
PUBLIC..." entry which appears in Code Set 2 but not in 1.
In Code Set 1 a text string "aaa" appears centered in a browser
window. In Code Set 2 this text string is top aligned - it is not
centered. Tested and consistent in IE6 and NN7.
What gives? Does the "<!DOCTYPE" entry carry so much significance? I
always thought it was redundant.
Thanks,
Rudi