HTML and CSS Reference
2.2.3. Using the form input attribute required
The Login Details form section is the most unremarkable part of the form. It asks the user
to enter an account password and to enter it a second time to confirm. The markup doesn't
introduce any new HTML5 features, but later in this chapter you'll learn how to use the
Constraints Validation API to provide password confirmation.
Step 3: Build the Login Details form section
At this point, you need only to add the code from the following listing to index.html, after
the end of the previous listing; then we'll move on to a more interesting section.