action attribute
name attribute:
onsubmit attribute:
This declares a JavaScript function named validateForm(). This function will be called when the form is submitted, as specified in the onsubmit attribute of the <form> element
Function Declaration:
function validateForm() { … }:
Variable Declarations:
Empty Field Check
Password Matching Check:
Regular Expression:
Password Validation Check: