Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2006, 02:57 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fieldset and Legend without forms - possible?

I'm curious as to the group's feelings about using the <fieldset>
and <legend> tags around elements other than <form> elements ... Is this valid?
__________________
Gaz
 
Old July 2nd, 2006, 05:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Depends on what you mean. The validator won't puke but someone looking at your code might.

I guess that's a limitation with the validator. FIELDSET and LEGEND are form elements, so using them otherwise isn't kosher IMHO. Why do you want to avoid CSS? This is very easy to do. Of course, you can't mimic how fieldset and legend look in every browser, but you can choose one style or come up with your own and make them it look like that in all browsers.

--
http://yupapa.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
how we use legend of the pictures chichiboof Word VBA 2 October 18th, 2006 02:59 AM
Graph legend doesn't have enough colors barmanvarn Reporting Services 0 October 13th, 2006 03:45 PM
Opening forms from other forms Paulsh Access VBA 1 September 30th, 2004 06:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.