Line 83, Column 66: document type does not allow element “INPUT” here; missing one of “P”, “H1”, “H2”, “H3”, “H4”, “H5”, “H6”, “PRE”, “DIV”, “ADDRESS” start-tag
Do submit buttons and hidden elements have to be wrapped in their own DIV or P tags?
Rudy, I’m on chapter 4 of your Simply Sql book… and I was going through the examples just a few hours ago. It’s a great book. Thanks for the reply. It really changed the way I program sites. I use the database a lot more, than just having php do all the work.
There are certain HTML elements that, if you go through the specs, require a block element as an immediate child.
On most forms, that block (or blocks) would be a fieldset. A fieldset gets a legend.
Usually I’d rather see fieldsets in forms than p’s.
On very short forms like login or search, a div may do the job better and no hassle for a legend that, on forms like that, don’t necessarily add anything useful.
Other blocks like this (who require blocks as direct children) are the body and blockquote.