Jump to content
php.lv forumi

document type does not allow element


stencilz

Recommended Posts

šeit ir source

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css">
br
{
 line-height: 0px;
}
p
{
 margin-top: 2px;
 margin-bottom: 1px;
}
div.top_line
{
  background-color: #000000; 
text-align: center; 
padding: 1px; 
margin-bottom: 0px;
color: #FFFFFF;
}
div.center
{
text-align: center;
}
</style>
<title>Please log in</title>
</head>
<body>
<div class="top_line"><p>Please log in</p></div>
<div class="center">
<form action="" method="post">
<p>Username:</p><input type="text" name="form_username" size="10" /><br />
<p>Password:</p><input type="password" name="form_password" size="10" /><br />
<br />
<input type="submit" value="ok" />
</form>
<a href="register.php">Registration</a>
</div>
</body>
</html>

 

kāpēc man pie validācijas met ārā šādus errorus?

 

document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

 

un visur norāda uz <br /> vai input noslēdzošo >

 

kas ir jāmaina kodā?

Link to comment
Share on other sites

×
×
  • Create New...