HTML Forms

Learn how to receive input from your web page's users.

Overview

HTML forms are how we receive user input on our web pages. If you’ve ever visited a blog and left a comment or used your credit card online to purchase something, you have used HTML forms to interact with the web page you were visiting.

Say we’re trying to create a login page. We will need an HTML form to get the user’s username and password. Let’s first create a form element using the <form> tag:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy