ruggeddesign
10-02-2006, 11:23 PM
I have read too much literature that repetitively reiterates (ha) the need to separate structure from behavior and style . . . and "more importantly" to use proper HTML syntax for marking up your content.
So my question would be this, is there some standard markup you are all using for your form elements? When I began I was using <div class="input"> and <div class="label"> before each label/input element in the form . . . now, I'm just using labels and input tags but this makes it hard to place an error message during validation.
I read one book that said maybe we shouldn't use paragraph elements in forms since they aren't necessarily the proper element. What do you use?
So my question would be this, is there some standard markup you are all using for your form elements? When I began I was using <div class="input"> and <div class="label"> before each label/input element in the form . . . now, I'm just using labels and input tags but this makes it hard to place an error message during validation.
I read one book that said maybe we shouldn't use paragraph elements in forms since they aren't necessarily the proper element. What do you use?