rosschilen All American 1025 Posts user info edit post |
What is the tag to create a border around html forms? It looks something like below:
___Form Name______ | | | | | | | | |__________________|
[Edited on August 29, 2006 at 4:34 PM. Reason : ]8/29/2006 4:32:59 PM |
Prospero All American 11662 Posts user info edit post |
<fieldset> 8/29/2006 4:37:42 PM |
Noen All American 31346 Posts user info edit post |
A form isn't a visual element.
If you want a border around your form elements you need to either use a table or a div tag. Either way you should use the style="border: black 1px solid;" element to set the border. black can be replaced with any recognized color shortcut word or any hex value (#000000), 1px is the width in pixels, and solid sets the type of border (google for other options if you need them)
^Or that
If you use fieldset, you should go ahead and use captions and labels to identify your form elements (ie the legend tag)
[Edited on August 29, 2006 at 4:41 PM. Reason : dunno what happened there] 8/29/2006 4:38:12 PM |
OmarBadu zidik 25071 Posts user info edit post |
http://www.google.com/search?q=html+border+around+forms&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official 8/29/2006 4:38:16 PM |
Noen All American 31346 Posts user info edit post |
^Dunno what that is, but not really helpful
[Edited on August 29, 2006 at 4:41 PM. Reason : .] 8/29/2006 4:40:24 PM |
Prospero All American 11662 Posts user info edit post |
more specifically
<fieldset><legend>Field Name</legend></fieldset>
as for if whether this is functional or visual argument, i think it can be both, but never just for visual. i can show you an excellent example. 8/29/2006 4:41:38 PM |
Noen All American 31346 Posts user info edit post |
yea, fieldset is the "proper" way to do it, I've just rarely if ever made use of it (shame on me). With a little css it can be just as pretty as using divs all over the place. 8/29/2006 4:42:47 PM |
agentlion All American 13936 Posts user info edit post |
some underused HTML elements, including fieldset and legend, here - http://www.seomoz.org/blogdetail.php?ID=1282 8/29/2006 4:51:42 PM |
Noen All American 31346 Posts user info edit post |
^thats a seriously cool link 8/29/2006 8:17:38 PM |
srvora Veteran 326 Posts user info edit post |
indeed, thanks for that link. learn something new everyday. 8/29/2006 8:28:08 PM |
agentlion All American 13936 Posts user info edit post |
yeah, i didn't know about any of those. I'd seen optgroup, but didn't know how to use it. 8/29/2006 11:52:26 PM |