Home > Posts > Grouping fields in HTML forms: fieldset and legend tags

Grouping fields in HTML forms: fieldset and legend tags

While browsing Microsoft Translator interactive SDK pages, I noticed at their Create a Web Widget page, at the HTML tab, that the sample HTML code was using the fieldset and legend
tags. Very interesting tags, "fieldset" produces a nice looking group
box around the HTML content it encloses, whereas "legend" tag’s content
is the groupbox’s caption. I wonder though why HTML’s "legend" tag
wasn’t designed to be an attribute of the "fieldset" tag instead. May
they left the possibility open of reusing the "legend" tag in the
future outside of the "fieldset" tag.
Advertisements
Categories: Posts
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: