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:
<http://www.learnsomethingnew.us/fieldset.html>
to illustrate this, and it validated at both the W3C and WDG sites.
(It's a <fieldset> around a <table> and <p>).
I'm able to view it on Opera 7.23, Mozilla 1.6, and IE 6. (Moz 1.6
renders it in Standards Compliance Mode as well.)
This interests me, because it seems like such a shame that we can't
use <fieldset> for anything we want, since it's so handy. Here's the
write-up in the HTML 4.01 spec: <http://tinyurl.com/2sbn4>. I don't
know how to read a DTD, but I don't see any mention of forms except
in commented sections.
Is it likely that HTML written along these lines will break in
future browsers? If not, is there any compelling reason not to use
<fieldset> in any way that validates?
Ian
-- http://www.aspipes.org/ http://www.bookstacks.org/ http://www.learnsomethingnew.us/ 14 10751
Ian Rastall <id*******@sbcglobal.net> wrote: I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ...
- - Is it likely that HTML written along these lines will break in future browsers?
Many people say that <fieldset> and <legend> are broken in _current_
browsers, not to mention old browsers that don't get them at all.
I think the main concern is user confusion. Form fields should look
like form fields, and other things shouldn't.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote: Ian Rastall <id*******@sbcglobal.net> wrote:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... - - Is it likely that HTML written along these lines will break in future browsers?
Many people say that <fieldset> and <legend> are broken in _current_ browsers, not to mention old browsers that don't get them at all.
I'm curious what you mean by "broken". I've just used them for the
first time, and find them to look just as they ought to by default in
both IE6 and Mozilla, grouping controls and labeling them. Are they
meant to have some kind of function beyond that? I think the main concern is user confusion. Form fields should look like form fields, and other things shouldn't.
I'm guessing the OP is using form fields for some kind of client-side
application served over the web. Most users have no conception of what
an HTML form is or whether a given control is on one or not.
Semantically, if you're not submitting data for server-side
processing, shouldn't the controls be used without a <form>? But a
checkbox should still look to the user like a checkbox, and a button
like a button.
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Ian Rastall wrote: 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: <http://www.learnsomethingnew.us/fieldset.html> to illustrate this, and it validated at both the W3C and WDG sites. (It's a <fieldset> around a <table> and <p>).
If a fieldset contains no fields, is it a fieldset?
This interests me, because it seems like such a shame that we can't use <fieldset> for anything we want, since it's so handy.
I don't see why it is so handy in your example. What is the purpose of
having it, besides the visual effect?
Is it likely that HTML written along these lines will break in future browsers? If not, is there any compelling reason not to use <fieldset> in any way that validates?
Semantics. A fieldset "allows authors to group thematically related
controls and labels". You are not using it to group any form
controls/labels at all.
It appears that the only use for it here is the default visual effect in
browsers, one that wouldn't be that hard to replicate with more
semantically accurate tags.
--
Bill Mason
Accessible Internet http://www.accessibleinter.net/
prefix @accessibleinter.net with anything to reply
On Sun, 01 Feb 2004 23:52:50 -0500, Ian Rastall <id*******@sbcglobal.net>
wrote: This interests me, because it seems like such a shame that we can't use <fieldset> for anything we want, since it's so handy.
Yeah, and it's a shame we can't wrap the whole body in a <h1> tag since
that looks cool too. Plus it solves the readability issue.
On Wed, 04 Feb 2004 04:10:28 GMT, Bill Mason
<us****@accessibleinter.net> wrote: I don't see why it is so handy in your example.
It wasn't meant to illustrate its usefullness ... just that it
rendered.
What is the purpose of having it, besides the visual effect?
It's just another way of grouping things together. The advantage
over using, say, a <div> with a border, is that you can label it. In
a site with headline news, for instance, you could organize the
headlines in this way, and make the contents of the <legend> tag a
link to the full article. In fact, despite the impression it makes
of being purely visual, it seems like more of a structural tag.
Ian
-- http://www.aspipes.org/ http://www.bookstacks.org/ http://www.learnsomethingnew.us/
On Wed, 04 Feb 2004 04:18:49 -0500, Ian Rastall
<id*******@sbcglobal.net> wrote: In a site with headline news, for instance, you could organize the headlines in this way, and make the contents of the <legend> tag a link to the full article.
Come to think of it, being able to use a <legend> tag to add a
caption to a bordered <div> could be very useful ... forget
<fieldset>.
Ian
-- http://www.aspipes.org/ http://www.bookstacks.org/ http://www.learnsomethingnew.us/
"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:rm********************************@4ax.com... "Jukka K. Korpela" <jk******@cs.tut.fi> wrote:
I'm sorry, I responded without having looked at his page. Obviously he's NOT
using fieldset the way it's meant to be used. He's using it for a look and
feel that is out of place and on which he can't depend from browser to
browser.
Harlan Messinger <hm*******************@comcast.net> wrote: Many people say that <fieldset> and <legend> are broken in _current_ browsers, not to mention old browsers that don't get them at all.
I'm curious what you mean by "broken". I've just used them for the first time, and find them to look just as they ought to by default in both IE6 and Mozilla, grouping controls and labeling them. Are they meant to have some kind of function beyond that?
The people who say that they are broken mainly refer to the visual
appearance that has a border around the fieldset, with the legend
partly covering it. And is there any _functionality_ associated with
fieldset markup? Besides, making the legend obligatory is odd (though
in practice it can be left empty).
It's largely a matter of taste whether such appearance is good or bad,
but it seems to be difficult to style it in CSS - actually I don't
think there's a way to _describe_ all of its features in CSS even in
principle.
I find it somewhat strange that some people refuse to use fieldset in
forms due to the persistent appearance which they regard as poor, and
some other people would use fieldset just because of the appearance.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. .. Harlan Messinger <hm*******************@comcast.net> wrote:
Many people say that <fieldset> and <legend> are broken in _current_ browsers, not to mention old browsers that don't get them at all. I'm curious what you mean by "broken". I've just used them for the first time, and find them to look just as they ought to by default in both IE6 and Mozilla, grouping controls and labeling them. Are they meant to have some kind of function beyond that?
The people who say that they are broken mainly refer to the visual appearance that has a border around the fieldset, with the legend partly covering it.
They call that broken? I don't know about other OSes, but that's what
control group frames have looked like on Windows all along. I never saw
anything wrong with it.
And is there any _functionality_ associated with fieldset markup? Besides, making the legend obligatory is odd (though in practice it can be left empty).
It's largely a matter of taste whether such appearance is good or bad, but it seems to be difficult to style it in CSS -
Ah. I see.
actually I don't think there's a way to _describe_ all of its features in CSS even in principle.
I find it somewhat strange that some people refuse to use fieldset in forms due to the persistent appearance which they regard as poor, and some other people would use fieldset just because of the appearance.
Jukka K. Korpela wrote:
[snip fieldset/legend comments] It's largely a matter of taste whether such appearance is good or bad, but it seems to be difficult to style it in CSS - actually I don't think there's a way to _describe_ all of its features in CSS even in principle.
As a matter of interest, can I ask which features you have in mind that
present a problem?
--
Michael
m r o z a t u k g a t e w a y d o t n e t
Michael Rozdoba <mr**@nowhere.invalid> wrote: It's largely a matter of taste whether such appearance is good or bad, but it seems to be difficult to style it in CSS - actually I don't think there's a way to _describe_ all of its features in CSS even in principle.
As a matter of interest, can I ask which features you have in mind that present a problem?
I don't there's a way to describe the rounded corners that e.g. IE
on WinXP uses. Setting border properties for fieldset affects its
special border in some cases (property/browser combinations) only.
The placement of the legend might be describeable using positioning or
negative margins, but I'm not sure how well that would work in
practice, especially since we don't really know what browsers are
doing.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Jukka K. Korpela wrote: Michael Rozdoba <mr**@nowhere.invalid> wrote:
It's largely a matter of taste whether such appearance is good or bad, but it seems to be difficult to style it in CSS - actually I don't think there's a way to _describe_ all of its features in CSS even in principle. As a matter of interest, can I ask which features you have in mind that present a problem?
I don't there's a way to describe the rounded corners that e.g. IE on WinXP uses.
Ah, I've not seen that; yes, it would be tricky.
Setting border properties for fieldset affects its special border in some cases (property/browser combinations) only.
Ok.
The placement of the legend might be describeable using positioning or negative margins, but I'm not sure how well that would work in practice, especially since we don't really know what browsers are doing.
Yes, this is the bit I had a fiddle with. Thought I'd cracked it with http://osiris.sunderland.ac.uk/~cd2m...gySeeOpera.htm
but as the file name implies, it doesn't work with Opera (& in any case,
the use of span is hacky in that context).
Putting the legend text into the group div with suitable 0 margin &
padding & setting line height to 0 gets the right result in IE 6 &
Firebird 0.7, but not in Opera 7.23.
A read of the spec suggests Opera is getting it right by assuming
vertical-align of baseline within this zero height box aligned with the
div top border. Setting other aligns on the Span fixes this in Opera but
breaks it in IE. So even if the spec allows it, it doesn't seem to be
easily doable in practice.
A previous attempt with negative margins also looked promising but broke
in IE & I think I've read use of negative margins is less reliable in
practice than tinkering with line-height.
--
Michael
m r o z a t u k g a t e w a y d o t n e t
Ian Rastall wrote: On Wed, 04 Feb 2004 04:10:28 GMT, Bill Mason <us****@accessibleinter.net> wrote:
I don't see why it is so handy in your example.
It wasn't meant to illustrate its usefullness ... just that it rendered.
What is the purpose of having it, besides the visual effect?
It's just another way of grouping things together. The advantage over using, say, a <div> with a border, is that you can label it. In a site with headline news, for instance, you could organize the headlines in this way, and make the contents of the <legend> tag a link to the full article. In fact, despite the impression it makes of being purely visual, it seems like more of a structural tag.
Ian
If you are just after the looks, you can achieve pretty much the same
rendering with a regular markup: http://www.vladdy.net/demos/fieldsetlegendlook.html
--
Vladdy http://www.klproductions.com
In article <Xn*****************************@193.229.0.31>,
"Jukka K. Korpela" <jk******@cs.tut.fi> writes: And is there any _functionality_ associated with fieldset markup?
Most obviously, a group of radio buttons is a functional
relationship and benefits from being presented to the user.
Otherwise, it may serve to delimit an entire Form or part.
--
Nick Kew This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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"...
|
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"...
|
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...
|
by: Adam Smith |
last post by:
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?
...
|
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...
| |
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...
|
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"...
|
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...
|
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:
...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
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...
| |