To Lecture Notes

IT 130 -- 10/7/09

 

Go Over Midterm

 

RGB Color Values

 

External Styles

 

The WebsitePlan Project

 

More Examples

 

Forms and Controls in HTML

 

Dynamic Web Pages

 

The Dot ( . ) Operator

 

Creating a Form

 

Creating Controls

 

Practice Problem 1

  1. Create a web page with the title Changing the Background Color Dynamically. Display the title in the title bar and in an h1 or h2 heading. Supply an interesting document-level style for your page.

  2. Add a button to your form with the caption Push Me. The onClick attribute should be similar to this:
    onClick=alert('Hello');
    However, select a different message than 'Hello'.

  3. Add styles to the button similar to this:
    style=background-color:beige;color:maroon;font-family:arial; font-size:150%;width:1in;height:0.5in

  4. Add a form containing three buttons with captions Red, White and Blue. Clicking on a button will change the background color of the form to that color when the OnClick attribute is added below.