FormsLesson 117Free preview
Login Form
This lesson is part of How To · All levels
Summary
A login form is a form for entering a username and password. The form is usually displayed in a centralized card with a clear label and a submit button. Login data should be sent via the POST method and processed on the server, not stored or verified only in the browser.
Key points
- Each input requires a label that is connected via the for and id attributes.
- Input type=password disguises the character of the password.
- The credential form should be used with the method="post".
- The autocomplete attribute makes it easy for the password manager to fill in the data.
- Client-side validation does not replace checking on the server.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.