Welcome to Learn forms #
This course breaks down HTML forms into easy to understand pieces. Over the next few modules, you'll learn how an HTML form works and how to use them effectively in your projects. Use the menu pane by the Learn Forms logo to navigate the modules.
You'll learn how to build a basic HTML form, about HTML form elements, styling forms, help users re-entering data, ensuring the form is accessible, and secure, how to test your forms, and about specific form types.
Each module is full of interactive demos and self-assessments for you to test your knowledge.
This course is suitable for beginners and advanced HTML developers. The first few modules help you get started with building HTML forms, the other modules give more detail. You can go through the series from start to finish to get a general understanding of HTML forms, or pick a specific module you want to learn more about.
Before starting this course, you should know about HTML. For those new to web development, check out the intro to HTML course from MDN to learn all about how to write markup.
For most demos, we use CodePen.
Looking at the demos, you might wonder where the styles come from. We use a general stylesheet included in all demos, so only the relevant styles are shown there. In CodePen, you can select included CSS files from Settings.
Form controls and form fields #
A form control is an element that enables user interaction and data entry or selection: an
Sometimes form field is used to refer to form controls, in particular elements for text entry:
Here's what you'll learn #
Learn the basics of using a form on the web with this introduction to the form element.
An overview of the various form elements you can choose from to build your form.
Make it more convenient for users to fill out forms.
Learn how to validate your forms on the frontend.
Learn how to test and analyze your forms.
Learn how to build user-friendly forms.
How to build inclusive forms.
Be prepared for international data formats, and learn how to plan your form for localization.
Learn how to make your forms secure and keep your users' data private.
Learn all about autofill and the autocomplete attribute.
Discover how to do usability testing and ensure your form works well for all your users.
Ensure your form works with different devices, browsers, platforms, and different contexts.
Learn how to measure and analyze your form.
Learn all about the form element, when you should use a form, and how a form works in detail.
Learn about the different form fields you can use, and how to choose the right form element.
Learn all about form attributes: how to modify the layout of on-screen keyboards, activate built-in validation, and more.
Style forms using CSS, while ensuring they remain usable and readable for everyone.
Learn how to implement form controls with CSS.
Learn how to build secure and accessible sign-up and sign-in forms, and find out how to help users change their account settings.
Improve conversion rates by building better payment forms.
Help users fill out address forms quickly and easily.
Further resources to help you take your next steps.
So, are you ready to learn about forms? Let's get started.