Codecademy Practice

Password validation

Challenge: Create a simple program that validates user login credentials. The program should prompt the user for a username and a password.

If the password matches the right value, the program should display “Welcome!” If it doesn’t match, the program should display “I don’t know you.”.

To practice: if/else conditionals, emojis in HTML, CSS positioning, CSS box-shadow.

Example:

username: matt
password: 12345
I don't know you.

or

username: matt
password: abc$123
Welcome!

Step by step instructions:

HTML

<meta charset="utf-8"/>

CSS

JS

GIT

DEBUGGING

Use your browser’s developer tools as you did in the previous challenge.