Password-Protected Page

Enter Password to View Page

This page uses a JavaScript program that requires the reader to type a password (mypassword123) to view the protected content of the page. The password must be supplied by the web designer. Allowing readers to create their own passwords would require a PHP program on the server instead of a JavaScript program on the reader's computer.

Prompt

Write HTML, CSS, and JavaScript to create a password-protected page. When the user types in the correct password in the log-in box, the log-in box will disappear and be replaced by the protected content.

Welcome!

This is the protected content of the webpage.