Beginner’s Guide to Web Development
4 minute read
In the early days of the web, web pages were largely static — meaning that after a site’s HTML documents were downloaded and displayed by the web browser, the content wouldn’t change. To display changes made on a web page, the web browser would have to download a completely new version of the HTML documents from the web server — a slow and inefficient process.
Nowadays, web pages are considered more “dynamic,” since they’re capable of responding to user input in real time. Things like the ability to “favorite” social media posts or update the inventory in a shopping cart in an online shop are examples of dynamic content — they don’t require the browser to re-download the page to display changes.
Creating a Button
Making the Real World More Interactive
Form Validation: Another Type of Interactivity
This form has three unique validation requirements:
- First, all three fields are mandatory and cannot be empty when the form is submitted. Each new user who registers for an account must provide an email address, a username, and a password.
- Second, the user’s email address must be real. If the email isn’t real, it would be impossible to contact them.
- Finally, users need to create a secure password with at least six characters.
@ sign from their email address, we can provide an “Invalid email address” error message.