Testing fieldsets and legends

The <fieldset> HTML element is used to group more than one form field within a web form. The <legend> HTML element represents a label for the content of its parent <fieldset>.

Which of the form groups below has:

  1. Form group heading that is visible.
  2. Form group heading that is programmatically available.

Example 1

Example 2

Favourite animal

Example 3

Favourite animal