With use of HTML and CSS, make a login form that has an email textbox, and a password textbox with a login button.  Also provide an external JavaScript code that will validate all fields of the form using the following criteria: * Email address must not be empty and must be tested against the regular expression: /^\S+@\S+\.\S+$/. * Password must use the following regular expression pattern: "(?=.*\d)(?=.*[a-z])(?=.*[AZ]).{8,}". The password must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

With use of HTML and CSS, make a login form that has an email textbox, and a password textbox with a login button.  Also provide an external JavaScript code that will validate all fields of the form using the following criteria:
* Email address must not be empty and must be tested against the regular expression:
/^\S+@\S+\.\S+$/.
* Password must use the following regular expression pattern: "(?=.*\d)(?=.*[a-z])(?=.*[AZ]).{8,}". The password must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of JavaScript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT