Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions Tools to help you create your site Free and shareware fonts to download Photographs to use in your projects Shop for your site needs Free Online classes REcommend this site to others Log in or edit your information when logged in Developingwebs Log Out Change My Account details and preferences
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

 

<LEGEND> ... LEGEND

Description:

The LEGEND element assigns a caption to a FIELDSET grouping of form elements. Using a LEGEND is most useful when pages are rendered using non-visual formats. The ALIGN attribute of this element will allow horizontal and vertical alignment of LEGEND content with respect to the FIELDSET in visual browsers.

Note: Use of the LEGEND element is optional within a FIELDSET, and if used, must immediately follow the opening FIELDSET tag. If the LEGEND element uses the ACCESSKEY attribute, the form control within the parent FIELDSET with the lowest tabbing order receives the focus.

Attributes:

accesskey - This is a method of giving access/focus to an active HTML element using a keyboard character. This is a common GUI paradigm also known as a "keyboard shortcut" or "keyboard accelerator" A single character is used as the value of this attribute. In addition, a platform-dependent key is usually used in combination with the ACCESSKEY character to access the functionality of the active field.

align - Indicates the source URL of the quotation. No rendering directions are given for this attribute.

Example code:

<fieldset>
<legend ACCESSKEY=G TABINDEX=1>Gender</legend>
<label ACCESSKEY=M>
<input TYPE=RADIO NAME=Gender VALUE=Male>Male</label> <br> 
<label ACCESSKEY=F>
<input TYPE=RADIO NAME=Gender VALUE=Female>Female</label>
</fieldset> 

Result:

Gender


"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2010 All Rights Reserved
Privacy and Legal