There are different ways to align your form labels and each has its own pros and cons.
When labels are left-aligned, the spacing between labels and input fields becomes inconsistent. The excessive visual distance between the labels and their corresponding input fields is a problem.
✅ Pros
❌ Cons
❌ Figure: Bad example - Inconsistent spacing between labels and input fields
Right-aligning labels ensures a consistent visual distance between the labels and their corresponding fields across the form. This strengthens the association between them, as objects placed closer together are perceived as related.
However, the inconsistent spacing on the left side of the forms makes it harder to scan the fields, leading to user discomfort and slower completion of lengthy forms.
✅ Pros
❌ Cons
🙂 Figure: OK example - If aligning labels inline is necessary, opt for right-aligned labels
In addition to being more visually appealing, placing labels above the input fields minimizes the visual distance between the label and the input field, creating a stronger cognitive association and enabling faster user response.
The downside of this alignment is that it increases the overall height of the form.
✅ Pros
❌ Cons
🙂 Figure: OK example - Top-aligned labels are space-efficient, making it adaptable to all resolutions
Adaptive placeholders are form labels that become into placeholders and vice-versa, depending on which fields have been filled or not. The placeholder is placed inside the form and slides up on focus and after field is filled. It gives the form a great UX.
✅ Pros
❌ Cons
✅ Figure: Good example - Using adaptive placeholders
You can find more useful information and examples in this nice article: Form design best practices.