Web Design Forums

Web Design Forums (http://www.webdesignforums.net/)
-   Search Engine Optimization / SEO (http://www.webdesignforums.net/search_engine_optimization_seo_13/)
-   -   weird w3 error (http://www.webdesignforums.net/search_engine_optimization_seo_13/weird_w3_error_15230.html)

boolean July 7 '04 10: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 12: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 12: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 12: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 12: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 12:10 PM

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

filburt1 July 8 '04 01: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 02: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 03:54 PM

Fix the basic errors before you do anything else.

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

boolean July 8 '04 05:51 PM

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

TheGAME1264 July 8 '04 06: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 06: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?


All times are GMT -4. The time now is 02:29 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.


SEO by vBSEO

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163