Many websites have a built-in login page where users are directed to and have to input their credentials to be able to enter the backend. In other words, first we will write and structure all the information contained in the page without worrying for style (CSS) or interactivity (JavaScript). We’ll see the practical use of these ids and classes next. how to make it function? But that’s not even the focal point. We’ve reached the end of this explanation and now you have a fully functional login page created with HTML, CSS and JavaScript. View Snippet. If they match, then an alert dialog is shown and the page is reloaded (for the sake of simplicity); otherwise, we display an error message. It’s what we call self-closing tags. With that said, you can still use tag name selectors. Since the