This form code is working in Mozilla and Chrome, but in Internet Explorer it is not working.
<form method="post" action="logincheck.php" >
<span class="meta">
<table>
</span>
<tr>
<td>
<span class="meta">
<label >Username </label>
</span>
<label>
</td>
<td> <input name="username" type="text" />
</label>
</form>
</td>
</tr>
<tr>
<td> <label ><span class="meta">Password</td>
<td>
<input name="password" type="password" />
</span>
</label>
</td>
</tr>
<tr>
<td>
<span class="meta">
</span>
<label>
<input type="submit" name="Submit" value="Submit" class="submit"/>
</label>
</td>
</tr>
</table>
</form>
The correct code for this form must look like this.
Here is a version without span tags, label and extra
</form>
in the middle of the table before submit button.I guess, you added those by hands in plain text editors.
One first error is:
But you have many errors.
Open and close tags as you will do with parenthesis. No horse riding. HTML and now XHTML need you to be a little bit more conscientious.
usefull tool:
You have a number of HTML errors, most important being an extra
</form>
tag shortly after the first<input>
. That means the secondinput
and thesubmit
button are outside the form, so it won't work. Firefox and Chrome are being a bit more forgiving here it seems.Fix your HTML and the form should work fine.
You have errors that automated QA tools can detect
The nesting is wrong. In fact, there's a lot more wrong. Try googling what
<label>
does exactly, and what<span>
does and when you want to use it. You probably want something like this: