Hallo,
ich habe folgendes Eingabefeld:
und folgende css:
Leider zeigt der W3 Validator 5 Fehler an:
ich habe folgendes Eingabefeld:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta name="content-style-type" content="text/css" />
<meta name="author" content="test.com" />
<meta name="description" content="test" />
<meta http-equiv="content-language" content="en" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="index,follow,noarchive" />
<meta name="keywords" lang="en" content="test" />
<title>TEST.com</title>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>
<body>
<div id="container">
<div id="main">
<p><img class="img-left" src="images/bild1.png" style= "width=32px; height=32px; border=0px" title="bild1" alt="bild1" />
<img class="img-right" src="images/bild2.png" style= "width=32px; height=32px; border=0px" title="bild2" alt="bild2" />
<center><b>
<form action = "mynameis.php" method = "get">Your Name: <input type = "text" name = "myname" size= "22" maxlength= "22" />
<input type = "submit" value = "OK" /></form></b>What's your name?</center></p>
</div></div>
</body>
</html>
und folgende css:
HTML:
#body {margin:0; padding:20px 0; font:55% verdana; repeat-x fixed; }
#container {width:580px; margin:0 auto; padding:87px 20px 0 10px; background:#fff no-repeat;}
a {text-decoration:none; color:#26c;}
p {margin:0 0 15px 10px; line-height:1.5em;}
#main {float:left; width:580px; margin-right:20px; padding:0; line-height:1.1em; text-align:justify; }
.right {text-align:right;}
.center {text-align:center;}
.justify {text-align:justify;}
.img-left {float: left; margin-left: 50px; }
.img-right {float: right; margin-right: 50px; }
Leider zeigt der W3 Validator 5 Fehler an:
Line 20, Column 24: element "center" undefined. Did you mean "center" or "textarea"?
<center><b>
Line 21, Column 61: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag…tion = "mynameis.php" method = "get">Your Name: <input type = "text" name = "
Line 21, Column 62: character data is not allowed here…ion = "mynameis.php" method = "get">Your Name: <input type = "text" name = "m
Line 21, Column 138: 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…myname" size= "22" maxlength= "22" />
Kann mir das bitte so jemand umschreiben, dass keine Fehler mehr angezeigt werden?Line 22, Column 54: 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…input type = "submit" value = "OK" /></form></b>What's your name?</center><…