Forum Moderators: open

Message Too Old, No Replies

XHTML Strict and Forms

What the hell is going on?

         

ukgimp

11:07 am on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have the correctly structured nested elements

<div>
<form>
<p>
some form elements
</p>
</form>
</div>

Even in its simplest stripped down form it will not validate. I must be missing something. I cannot even seem to get any joy with the example used here:
[webmasterworld.com...]

Cheers

dmorison

11:15 am on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The most common error in creating XHTML forms is the element closure on field elements that were not block level elements in traditional HTML.

For example, in HTML:

<input type='text' name='foo'>

should instead be:

<input type='text' name='foo' />

or

<input type='text' name='foo'></input>

in XHTML.

ukgimp

11:19 am on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cheers dm

I was just about to post a reply saying that I think I have a missing end tag. I had better go and find it, it is in there somewhere.

I may be some time.. :)

ukgimp

12:33 pm on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



found the mutha! One slash and three hours of work :(. But at least I have WAI AAA and xhtml strict and it does not look like a Jacob page. :)