Designing Login Forms

July 18, 2007

Since my last web design article was so popular, I decided to write a similar one.

This time we’ll start with an ordinary looking login form. The usability experts reading this will immediately notice a few design flaws.

memberlogin

For small forms like this one, field labels should be aligned to the right to minimize the distance your user’s eyes must travel. I’ve also moved the link and submit button directly under the input boxes.

memberlogin

I’ve encapsulated the form in a fieldset (<fieldset></fieldset>) and replaced the title with a legend (<legend></legend>). This isn’t normally nessesary but it helped define the form within all the surrounding white space.

memberlogin

Styling the legend…

memberlogin

I’ve added a yellow background and border to the fieldset and given it some rounded corners. I also moved the submit button to the bottom right so less eye movement is required by the user.

memberlogin

Leave a Comment

Previous post:

Next post: