XHTML W3C validation problems

This is a discussion on "XHTML W3C validation problems" within the Web Page Design section. This forum, and the thread "XHTML W3C validation problems are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 11th, 2005, 10:54
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
XHTML W3C validation problems

I get this error when I run my page through the validator:

Line 50 column 46: end tag for element "form" which is not open.

<input type="submit" value="Login" /></form></td></tr>

But the thing is, the form tag is open!

Here's my code snippet:
Code: Select all
			<table>
			<tr class="login"><td><form action="index.php" />
			Team:</td><td> <input type="text" name="username" size="15" /></td></tr>
			<tr class="login"><td>
			Password:</td><td> <input type="password" name="password" size="15" /></td></tr>
			<tr><td></td><td class="login" colspan="2">
			<input type="submit" value="Login" /></form></td></tr>
			<tr class="smallbluelink"><td>[Register]</td><td>[Forgot Password]</td></tr>
			</table>
Reply With Quote

  #2 (permalink)  
Old Oct 11th, 2005, 11:52
Banned Member
Join Date: Sep 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
me get error for the statement "<html>"...1st statement aft all that
required krap em want yu tu put in the first 3-4 lines.
Reply With Quote
  #3 (permalink)  
Old Oct 11th, 2005, 11:53
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
yeah, if you run just that snippet through the validator, it will die in the ass big time - but just imagine it's part of a whole page...
Reply With Quote
  #4 (permalink)  
Old Oct 11th, 2005, 15:28
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
You have to open and close the form outside of the table, not inside.
Reply With Quote
  #5 (permalink)  
Old Oct 11th, 2005, 16:27
Junior Member
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Code: Select all
<form action="index.php" />
That one line will cause problems. You are closing the form as soon as you open it.
Also, here is that code snippit restructured:
Code: Select all
         <form action="index.php">
         <table>
         <tr class="login"><td>
         Team:</td><td> <input type="text" name="username" size="15" /></td></tr>
         <tr class="login"><td>
         Password:</td><td> <input type="password" name="password" size="15" /></td></tr>
         <tr><td></td><td class="login" colspan="2">
         <input type="submit" value="Login" /></td></tr>
         <tr class="smallbluelink"><td>[Register]</td><td>[Forgot Password]</td></tr>
         </table></form>
It is now valid. :-)
Reply With Quote
  #6 (permalink)  
Old Oct 11th, 2005, 22:46
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Perfect, thank you!
Reply With Quote
Reply

Tags
xhtml, w3c, validation, problems

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
W3C Xhtml Validation... Pheonix Implemented Suggestions 13 Oct 7th, 2005 12:44
XHTML Validation Help socalledlove Web Page Design 7 May 3rd, 2005 21:06
XHTML validation keeps21 Web Page Design 4 Mar 21st, 2005 08:27
A few problems with XHTML validation criticalerror Web Page Design 5 May 3rd, 2004 19:35
XHTML validation problems Webforumz Staff Web Page Design 6 Jan 4th, 2004 15:45


All times are GMT. The time now is 23:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43