Link to home
Start Free TrialLog in
Avatar of sigma_z
sigma_z

asked on

What can forms contain?

I'm trying to keep my pages standards compliant, therefore, what am I allowed to place between <form></form> tags?

What am I not allowed to place between these tags?

Can I place markup between the tags, such as: <div><p><b><fieldset><legend><img><br>

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Can I place markup between the tags, such as: <div><p><b><fieldset><legend><img><br>
Yes. What you are not allowed to put inside a <form> tag pair, is tags like <head> <body> or <html>. The link ozo sent is a good resource to learn. You can check your HTML to ensure it is valid code, using this page too:
http://validator.w3.org/