Web Design Forums
http://www.webdesignforums.net: "weird w3 error"

Web Design Forums (http://www.webdesignforums.net/index.php)
-   Search Engine Optimization / SEO (http://www.webdesignforums.net/forumdisplay.php?f=13)
-   -   weird w3 error (http://www.webdesignforums.net/showthread.php?t=15230)

boolean July 7 '04 11:08 PM

weird w3 error
 
I'm getting a very weird "form" problem when I run the w3 validator on my site. Here's the link:

http://validator.w3.org/check?uri=ww...tomatically%29


This is what it says:
Line 109, column 4: end tag for "FORM" omitted, but its declaration does not permit this

</TD>



Line 107, column 0: start tag was here

<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="login.ph.

Line 116, column 91: end tag for element "FORM" which is not open

...mages/index_18.gif" ALT=""></A></FORM></TD>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.



Line 126, column 4: end tag for "FORM" omitted, but its declaration does not permit this

</TD>



Line 125, column 0: start tag was here

<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="search.ph

Line 128, column 104: end tag for element "FORM" which is not open

...if" NAME="index_26" ALT=""></A></FORM></TD>


Anyone got any ideas what it means? I can't figure it out :(

Wired July 8 '04 01:01 AM

Did some checking up, it looks like TDs aren't supposed to be within a form, only around them. Try re-arranging it a bit.

boolean July 8 '04 01:41 AM

ok im working on getting rid of the td's between.... but now it's doing something funny
http://www.scriptdownloads.com/header2.php
I was working on getting rid of the td's between the search form, but now there is alot of space above the text field, and I have no idea why. Anyone got any ideas?

TheGAME1264 July 8 '04 01:52 AM

Code:

<TD style="background-image:url(images/index_24.gif);">
<FORM METHOD="POST" style="margin-bottom: 0; display: inline;" ACTION="search.php"><INPUT TYPE="TEXT" NAME="search" size="5" class="login">
</TD>
<TD><IMG SRC="images/index_25.gif" WIDTH="15" HEIGHT="25" ALT=""></TD>
<TD><A HREF="search.php"><INPUT TYPE="IMAGE" SRC="images/index_26.gif" NAME="index_26" ALT=""></A>

</FORM></TD>


There's your problem. You're trying to close your one TD tag before
you've closed the form tag within. You gotta do something like
Code:

<td>
<form ....>
...form stuff...
</form>
</td>

Also, you don't hyperlink the image submit button. You just name it an input type.

boolean July 8 '04 01:54 AM

I know, wired already pointed that out (and I forgot to unlink the submit) but I already did all that. Please read my previous post as to what problem I'm currently having

TheGAME1264 July 8 '04 01:10 PM

In the inline style, try "vertical-align: middle" . That may get rid of that issue.

filburt1 July 8 '04 02:26 PM

Remember that for XHTML, tags without a normal closing tag need to be internally closed:
Code:

<img src="foo.gif" width="1" height="1" alt="" />

boolean July 8 '04 03:53 PM

what you said didn't work (thegame)

Any more ideas?
Also, now I'm getting some errors that were not there yesterday... something about "document type does not allow element "META" here"
Anyone got any ideas?

ceetee July 8 '04 04:54 PM

Fix the basic errors before you do anything else.

http://www.htmlvalidator.com/lite/

boolean July 8 '04 06:51 PM

the errors that are left ARE the errors i'm having trouble with

TheGAME1264 July 8 '04 07:27 PM

boolean: I meant in the <TD> tag, not the <FORM> tag. No big deal though.

As far as your code goes, ceetee's right. You've got a lot of unclosed tags right now going on in your code that may be contributing to things going wrong as well. I can't even view your source in IE. I had to go into FireFox *bleh* to get it.

boolean July 8 '04 07:43 PM

I had to do /> for everyone?
For example
<TD height="34" /> ?
<img src="dd.gif" /> ?

Since when has this been the "rule"? I learned html a long time ago and have seen this done before, but didn't know it was required?

vBulletin; copyright © 2000 - 2007 Jelsoft Enterprises Ltd. Visit Web Design Forums (http://www.webdesignforums.net) for other important copyright information.