Preparation

Mozilla Developer Network (MDN)’s Web technology for developers

Learning Objectives

  • Describe the uses and limitations of JavaScript
  • Perform client-side validation of user input using JavaScript

Practice

Check out the following examples, being sure to view the page source and to examine the integration of HTML and JavaScript:

Create a web page that solicits the user’s name, age, and favorite color. Include a “Check” button that notifies the user if any field is blank and modifies any blank fields’ labels to be red.