Styled form

legend
legend

Inline form

legend
legend

Vertical form

legend
legend

Horizontal form

legend
legend

Input group