Visa ett inlägg
Oläst 2006-09-28, 12:26 #13
cezar cezar är inte uppkopplad
Medlem
 
Reg.datum: Apr 2006
Inlägg: 260
cezar cezar är inte uppkopplad
Medlem
 
Reg.datum: Apr 2006
Inlägg: 260
Lite bättre. 5 errors har jag nu

koden
Kod:
<form action="sign.php" method="post">
<table class="gbok_table">
<tr>
<td>
<img class="noborder" src="images/name.gif" alt="Name" />
</td>
<td>
<div>
<input class="input" maxlength="35" name="name" type="text">
</div>
</td>
</tr>
<tr>
<td>
<img class="noborder" src="images/email.gif" alt="Email" />
</td>
<td>
<div>
<input class="input" maxlength="125" name="email" type="text">
</div>
</td>
</tr>
<tr>
<td>
<img class="noborder" src="images/url.gif" alt="URL" />
</td>
<td>
<div>
<input class="input" maxlength="125" name="uri" type="text" value="http://">
</div>
</td>
</tr>
<tr>
<td>
<img class="noborder" src="images/message.gif" alt="Message" />
</td>
<td>
<textarea class="textarea" name="message" cols="50"></textarea>
</td>
</tr>
</table>
<div>
<input type="image" src="http://www.johnny.nu/blog/images/sign_gb.gif" alt="Sign GB" value="Sign Guestbook">
</div>
</form>
Errors
Kod:
Below are the results of checking this document for XML well-formedness and validity. 
Error Line 43, column 60: end tag for "input" omitted, but OMITTAG NO was specified . 
<input class="input" maxlength="35" name="name" type="text">

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 

✉ 
Info Line 43, column 0: start tag was here . 
<input class="input" maxlength="35" name="name" type="text">
Error Line 53, column 63: end tag for "input" omitted, but OMITTAG NO was specified . 
...ass="input" maxlength="125" name="email" type="text">

✉ 
Info Line 53, column 0: start tag was here . 
<input class="input" maxlength="125" name="email" type="text">
Error Line 63, column 76: end tag for "input" omitted, but OMITTAG NO was specified . 
..." name="uri" type="text" value="http://">

✉ 
Info Line 63, column 0: start tag was here . 
<input class="input" maxlength="125" name="uri" type="text" value="http://">
Error Line 72, column 51: required attribute "rows" not specified . 
<textarea class="textarea" name="message" cols="50"></textarea>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. 

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. 

✉ 
Error Line 77, column 108: end tag for "input" omitted, but OMITTAG NO was specified . 
...alt="Sign GB" value="Sign Guestbook">

✉ 
Info Line 77, column 0: start tag was here . 
<input type="image" src="http://www.johnny.nu/blog/images/sign_gb.gif" alt="Sign
cezar är inte uppkopplad   Svara med citatSvara med citat