Edit This Code:
See Result »
A legend element is displayed like this:
Personalia:
Name:
Email:
Date of birth:
Change the default CSS settings to see the effect.
Result: