473,699 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

table inside form?

It is ok tu use a table tag inside a form tag?

(you know, you do not use h2 inside p, etc...)

--
Luciano A. Ferrer
la************* *@SacaDMEgmail. com
.... un todo en uno y uno en todo
Apr 1 '06 #1
14 19369
This idea is very possible, though I have never tried it. It should
not mess up the HTML code, but if it does, you can just preview the
site in IE and then check the Error Warning sign in the bottom left
corner. I have had some simple errors in my site, but those were
discerned through this method. It actually caught a mispelling that I
made in a JavaScript, so it should catch most other problems.

_______________ _______________ ___________

Patrick Reilly
1st Coy.
Colonel Seth Warner's Regiment

Apr 1 '06 #2
Luciano A. Ferrer wrote:
It is ok tu use a table tag inside a form tag?


Syntactically it is fine. Semantically it may or may not be.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 1 '06 #3
In article <e0**********@t ramontana.micas a.mired>,
Luciano A. Ferrer <al************ @arnet.com.ar> wrote:
It is ok tu use a table tag inside a form tag?


Yes, in fact this is quite common. It validates correctly too.

Form tags can contain anything, sort of like div tags.

-A
Apr 1 '06 #4
Gazing into my crystal ball I observed "Luciano A. Ferrer"
<al************ @arnet.com.ar> writing in news:e0ktbi$7md $2
@tramontana.mic asa.mired:
It is ok tu use a table tag inside a form tag?

(you know, you do not use h2 inside p, etc...)


Yes, you can put a table inside a form, which is what a lot of people do to
line up input elements, but there is a better way using CSS.

Here's an example:
<URL:http://www.intraproduc ts.com/usenet/requiredform.as p>

--
Adrienne Boswell
Please respond to the group so others can share
http://www.cavalcade-of-coding.info
Apr 1 '06 #5
axlq wrote:
Form tags can contain anything, sort of like div tags.


Not true.

<!ELEMENT FORM - - (%block;|SCRIPT )+ -(FORM) -- interactive form -->

Anything in the group "block" and script elements but not form elements.

<!ELEMENT DIV - - (%flow;)* -- generic language/style
container -->

Anything in the group "flow" (which includes everything in "block" but
also "inline".

(At least for HTML 4.01 Strict).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 1 '06 #6
In article <Xn************ *************** *@69.28.186.121 >,
Adrienne Boswell <ar********@sbc global.net> wrote:
Yes, you can put a table inside a form, which is what a lot of
people do to line up input elements, but there is a better way
using CSS.

Here's an example:
<URL:http://www.intraproduc ts.com/usenet/requiredform.as p>


I disagree that's a better way. Discounting the fact that this
example is XHTML and not HTML, bear in mind that one of the
advantages of CSS is to reduce the bandwidth required to serve up
a page. In the example above, it seems to me that a table-based
for a form would be simpler, easier to understand, and consume less
bandwidth.

A table is entirely appropriate when you want to maintain both a
horizontal and vertical relationship between displayed elements.
That's what it's for.

-A
Apr 1 '06 #7
In article <e0************ *******@news.de mon.co.uk>,
David Dorward <do*****@yahoo. com> wrote:
axlq wrote:
Form tags can contain anything, sort of like div tags.


Not true.


I stand corrected; you can't have a form within a form, of course.

-A
Apr 1 '06 #8
axlq wrote:
I stand corrected; you can't have a form within a form, of course.


No, for example, can they directly contain free text, or form controls.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 1 '06 #9
Gazing into my crystal ball I observed ax**@spamcop.ne t (axlq) writing in
news:e0******** **@blue.rahul.n et:
In article <Xn************ *************** *@69.28.186.121 >,
Adrienne Boswell <ar********@sbc global.net> wrote:
Yes, you can put a table inside a form, which is what a lot of
people do to line up input elements, but there is a better way
using CSS.

Here's an example:
<URL:http://www.intraproduc ts.com/usenet/requiredform.as p>


I disagree that's a better way. Discounting the fact that this
example is XHTML and not HTML, bear in mind that one of the
advantages of CSS is to reduce the bandwidth required to serve up
a page. In the example above, it seems to me that a table-based
for a form would be simpler, easier to understand, and consume less
bandwidth.

A table is entirely appropriate when you want to maintain both a
horizontal and vertical relationship between displayed elements.
That's what it's for.

-A


Bandwidth? 3463 bytes with a table and 3125 bytes with CSS and no tables,
and that would be further reduced because one would use an external
stylesheet.

CSS HTML 4.0 <URL:http://www.cavalcade-of-
coding.info/usenet/requiredform.ht ml>
Table HTML 4.0 <URL:http://www.cavalcade-of-
coding.info/usenet/requiredform_ta ble.html>

In recreating the form using tables, I found it to not be simpler at all.
Getting the form to display the same way using HTML attributes vs CSS
properties was not easy, and is still not quite right.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.cavalcade-of-coding.info
Apr 1 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2429
by: Sims | last post by:
Hi, This will validate, (http://validator.w3.org/) <form method="POST" action="" name='xForm' style='background:inherit;'> <table style='background:inherit; width:100%;'> <tr width=80%> <td> <input type="text" value="search" style="width:100%; text-align:left;"> </td>
6
2830
by: Amir Hardon | last post by:
I'm new to DOM and can't figure out this thing: I'm trying to add a row to a table with a form field in one of it's cells, but if I'm appending the field to a form it gets out of the table. Can some one tell me what I'm doing wrong? it looks like this: var tbl=document.tbl; var frm=document.frm; var newcell=document.createElement("TD");
8
7152
by: L Major | last post by:
Hi Unfortunately, I am limited to using tables for part of my current project. I have a form that spans across a number of TR and TD in the shape of checkboxes. Doctype is XHTML 1.0 Transitional, Encoding is utf-8 Is there anything wrong? Should I try something else? What in that case?
2
2911
by: Asad | last post by:
I have a form on a page that has several textareas, and textboxes inside a table (so the table containing the textboxes is also inside the FORM tag). I want to replace the textareas with simple text instead. But I want to keep the format of my page EXACTLY the same. However, the problem is that ... 1) Javascript won't let me create say a one-cell TABLE containing some text (e.g. textarea's value) and then insertBefore an element in the
5
1708
by: brian4cards | last post by:
http://www.igearonline.com/subscribe/admin.asp I have an html table that is loaded with database records. I have edit and delete options inside the table that edit or delete a given row. They all work fine except for the very first Edit option (the one that corresponds to the first row of data). Can anyone help me out. I have provided part of my code below. <%
5
36870
by: Richard Dixson | last post by:
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my code behind. However I am not able to do this at all, I am going about this wrong, I think and need guideance. If this was just straight HTML I would do this: <table> <tr><td>field 1</td><td>value 1 set by code behind</td></tr>
8
3887
by: tatemononai | last post by:
I had a beautiful script that was running, well, just beautifully. But then I decided to take a button that fired an event and place it inside a <asp:table. The event WILL NOT FIRE INSIDE THE TABLE!?! When I move the button outside the table, it works just fine. Inside the table, it doesn't. What gives?
2
3413
by: KarlosSultana | last post by:
Hello to those who read this, this is my first ever post! I am currently getting very confused trying to put a <form> in a table-cell: Firstly I have a <div> styled with display:table -this forms the "footer" box on my page. Next I have two nested <div>s styled with display:table-cell that I want to appear side-by-side. I can put a little <p> inside each one with some text and all is well. Now what I want in the end is a <form> with...
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8884
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.