twitter/bootstrap — Issue #1066: Cleaner Markup for Forms
Author: danxte
Created: 2012-01-19 18:42:24+00:00
State: open

The existing markup for forms is quite complex and lacks clear semantics.
I successfully use a definition list with a class 'form-block':

Email

First Name, Last Name

It can be styled to make it work horizontally and the vertically (stacked) and the
s and
s perfectly work with your span... classes. Moreover, it has the advantage that multiple labels and multiple form fields can be used per line (horizontally).

Isn't that much cleaner, especially in terms of semantics? What do you think?