How to build awesome forms with only HTML & CSS:

🧵A Thread🧵
Basic HTML:

Write the basic HTML
Using the power of HTML attributes:

Autofocus
Adding support for Password Managers:

Autocomplete
Tip for Sign-up forms:

Autocomplete
Facilitating the user:

Placeholder
Letting user know what info is required:

Required
Spicing up with CSS:
Tip for multiple input form:
More Form best practices:

1. Use a font-size of min. of 16px for desktop and min. of 20px for mobile screens.

2. Put sign-in/sign-up button on top in mobile view to avoid hiding the button under the keyboard.

3. Use colors that define your brand to add a personal touch.
4. Add enough padding to allow users to touch the input field easily on small screens.

5. Provide password criteria as text below the password field to help the user choose the right password in the first try.

6. Use pattern attribute for specific information like zipcode etc.
Hope you enjoyed the thread!

I would love to know which are some of the best form practices that you follow?
You can follow @thearslankhalid.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: