Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

What can forms contain?

Posted on 2006-11-10
4
Medium Priority
?
183 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

610 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