I have a page with a series of forms, each form has one or more inputs.
e.g.
<form> [indent]<input type="submit" value="submit">[/indent] </form>
The problem is that as input is an inline element it cannot go there, it must be contained in a block level element.
As you cannot put a div inside a form I decided to try fieldset, only to find out that in HTML 4.01 strict a fieldset requires a legend.
As far as I can see the only option left to me is a p tag.
Is using paragraph the only way around this?
Seems a bit counter intuitive as it is not a paragraph that I'm displaying.
If paragraph is the only way around this should I wrap each input in a paragraph? or just open a <p> at the start of the form and close it at the end of the form?
Any help and advice would be much appreciated.
Thanks!

New Topic/Question
Reply


MultiQuote







|