2009/10/22

XHTML 1.0 Strict - Form Input

I'm trying to make a form using XHTML 1.0 Strict but when I use the tag, while validating it says "element input not allowed here; possible cause is an inline element containing a block-level element".
It isn't allowed :) You need to put the input tag (which is an inline element)
inside a block-level element. The form element doesn't count. It was disallowed for semantic reasons.

Try a paragraph element

. Or perhaps a table (if you have a table of fields to fill in, and not just a table-based layout to beat CSS limitations...)

1 comment:

  1. It's quite helpful

    I just have the same problem like this...thanks

    here is my blog: http://kai4dmt.wordpress.com

    ReplyDelete