?
Solved

What can forms contain?

Posted on 2006-11-10
4
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

765 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