Solved

What can forms contain?

Posted on 2006-11-10
4
173 Views
Last Modified: 2010-04-09
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!
0
Comment
Question by:sigma_z
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 50 total points
ID: 17920160
A form can contain text and markup (paragraphs, lists, etc.) in addition to form controls.
http://www.w3.org/TR/html4/interact/forms.html#h-17.3
0
 
LVL 14

Expert Comment

by:huji
ID: 17920906
>> 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/
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now