PDA

View Full Version : can not get html to validate via w3c mobile validator



needsomehelp
Feb 21st, 2010, 02:28 AM
i can not seem to get w3c to validate my html code

http://waxler.w3.org/mobileok/index.html

i get the following errors....
--------
Error

The document is served without caching information ("Expires" or "Cache-Control" header)

Error

The HTTP Content-Type header does not specify a character encoding and no UTF-8 encoding or a non-UTF-8 is specified in the XML declaration

Error

The HTTP Content-Type header does not specify a character encoding but it specifies an Internet media type starting with "text/" and there is no meta element with http-equiv attribute that specifies UTF-8 character encoding
-------

can anyone please tell me what i am doing wrong with my code for it not to validate.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"><!--
input { font-size: 8px; color: #333333; background-color: #FFFFFF; }
div.center { text-align: center; }
--></style>
</head>

<body>
<div style="border: 5px solid purple; padding: 2px; margin: 0.125em; width: 300px;"><div class="center">Welcome</div>
<div class="center">System</div>
<br><div class="center">You are required to login to<br>access this section of the site.</div>
<form name="loginbox" method="post" action="auth.php">
<div class="center"><font size=2>Username</font><br><input size="20" type="text" name="name"></div>
<div class="center"><font size=2>Password</font><br><input name="password" type="password" size="20"></div>
<div class="center"><input type="submit" value="Log In" name="login"><input type="reset" value="Reset" name="reset"></div>
<div class="center"><a href="?"><font size="2">forgot password</font></a></div>
</form><br><br><br><br><br>
</div></body>
</html>