473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Use of <fieldset>/<legend> in Tables

Hello,

Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to
select multiple rows in a Table such that I can demarcate several rows
containing form elements in a table?

Thanks
Jan 12 '06 #1
4 26005
Els
Adam Smith wrote:
Hello,

Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to
select multiple rows in a Table such that I can demarcate several rows
containing form elements in a table?


No, you can't put anything between <table> and <tr>.
If you really need to have a form in only part of the table, you'd
need to nest another table inside a <td>.
Another option is to have the <form> and <fieldset> tags outside the
entire table.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Eurythmics & Aretha Franklin - Sisters Are Doing It For
Themselves
Jan 12 '06 #2
Adam Smith wrote:
Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to
select multiple rows in a Table such that I can demarcate several rows
containing form elements in a table?


No.

Invalid nesting,
<fieldset><legend><tr></tr> <tr></tr></legend></fieldset>
would be correctly nested.
But it's still invalid, because FIELDSET is not a valid child for a TBODY
element. You cannot put anything 'around' one or more table rows (except
for THEAD, TBODY or TFOOT, with TBODY being implied, if you omit the start
and/or end tag of it).

You cannot even put a TABLE into the LEGEND, because only inline elements
are allowed there and TABLE is a block element.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Jan 12 '06 #3
Els
Benjamin Niemann wrote:
But it's still invalid, because FIELDSET is not a valid child for a TBODY
element. You cannot put anything 'around' one or more table rows (except
for THEAD, TBODY or TFOOT, with TBODY being implied, if you omit the start
and/or end tag of it).


I keep forgetting to mention thead etc when saying nothing is allowed
between table and tr :\

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Christina Aguilera - Cruz
Jan 12 '06 #4
Els wrote:
Adam Smith wrote:

Hello,

Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to
select multiple rows in a Table such that I can demarcate several rows
containing form elements in a table?

No, you can't put anything between <table> and <tr>.


Except thead, tbody, tfoot.
If you really need to have a form in only part of the table, you'd
need to nest another table inside a <td>.


The usual motivation for this kind of thing is to obtain uniform column
widths from one form to the next, but unfortunately you can't accomplish
that with valid HTML. CSS will do it if min-width and max-width are
strictly applied by the browser.
Jan 12 '06 #5

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

Similar topics

5
by: Domestos | last post by:
Hi all - please help... using <FORM> HTML tag for user input and need to get get data from it and store in php variable... <input type="text" name="user_name" size="18" maxlength="16"...
14
by: Ian Rastall | last post by:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... I wrote a small test file:...
9
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/src/search.html> I have a simple form, using the following code provided by my site search provider: <form method="get"...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
0
by: bobmct | last post by:
Gentlemen; I'm in the process of migrating several pages from HTML under frames to noframes using css using the three or four box design. For most of my efforts its going well. However, one...
5
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will...
9
by: Geoff Cox | last post by:
hello when I use <fieldset><legend></legend> <input type="hidden" name="subject" value="Course"> <input type="hidden" name="recipient" value="allemails"> <input type="hidden" name="email"...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
6
goatboy
by: goatboy | last post by:
So I am hosting a site from my home server, and I would like the main page to be an area for updates about the site. I am providing these updates in a blog-style format, using this code: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.