Hello everyone,
I had a problem last night that has suprised me, either that or I have not noticed it before:-
<div class="formcontainer">
<form method="post">
<textarea name="mytextarea">
Hi there!
</textarea><br/>
<input type="submit" name="submit" value="submit">
</form>
</div>
I thought as this would be perfectly fine going though the validator, but it turns out as it needs nesting :-
<div class="formcontainer">
<form method="post">
<p><textarea name="mytextarea">
Hi there!
</textarea>
</p>
<br/>
<p><input type="submit" name="submit" value="submit"></p>
</form>
</div>
Or is this just the difference between transitional & strict?
This may seem trivial, but I thought that having the entire form encased in 1 div would be ok, but adding the <p> tags around each element made it validate properly.
Maybee I have missed a day at html school somwhere along the line ;-p but it just caught me out for half hour last night.
Cheers,
MRb