|
|
• Table Talk ! |
|
| ||||||
| • An Advanced Look For Your Forms |
|
The <fieldset> and </fieldset> tags will form a "box" around whatever you place within them. This tag is mainly used to define a group of "form" items. For example: A form where you would input the User Name and Password might have a fieldset box around it to set it off from the rest of the form.
Along with the <fieldset> set of tags there should always be a <legend> and </legend> set of tags. The "legend" tags will place some text (or a caption) within the "fieldset" box. Note: The closing </fieldset> and </legend> tag is required for both <fieldset> and <legend> tags.
Here is an example of a <fieldset> box with a <legend> caption within the "fieldset" box. I will add some regular text inside the "fieldset" box so you will get the idea of what we are doing here.
Below is the coding for the above "fieldset and legend" example.
<fieldset>
Now lets try a "fieldset" and "legend" with a simple form. I will create the "fieldset" around a form to input a User Name and Password. I will use the text "Log In" as the "legend".
Note: This is a non working sample form.
Below is the coding for the above "fieldset and legend" example.
<fieldset>
Above is a very basic example of a "fieldset" and "legend". Below is the same example with some CSS coding added to control it's size and how it looks. I think the CSS coding adds a lot to the "fieldset" and "legend" tags.
Note: This is a non working sample form.
Below is the coding for the above "fieldset and legend" example with some CSS coding added to the <fieldset> and <legend> tags.
<fieldset style="border: 8px ridge #ff00ff; color: #ffffff; width: 300px;"> |
|
|
Draac.Com Is Hosted By ValueWeb
Register UK domain names at Domain Names UK
|
|
| Advertise
| Link To Us | Status/Updates | Privacy Statement |
| Copyright © 1999-2003 Draac.Com
© All Rights Reserved. |