Solved

What can forms contain?

Posted on 2006-11-10
4
178 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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).

696 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