A website wants to improve user security by checking the strength of passwords entered by users during registration. The system should guide users to…
2026 · Solved Question with Answer
A website wants to improve user security by checking the strength of passwords entered by users during registration. The system should guide users to create strong passwords.
You are required to:
a. Design a password input field using HTML.
b. Write JavaScript to validate the password such that:
Length should be at least 8 characters
It must contain at least one uppercase letter and one digit
c. Display password strength as “Weak” if it fails the validation.
d. Why strong passwords are important for web security? Explain.
e. Write one security best practice for password protection.
