Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Suggested practice exercises CHAPTER 4 201


FIGURE 4-23 he completed web calculatorT


  1. Try clicking the number buttons to choose numbers and try the plus and minus but-
    tons while observing the result. Try clicking the clear-entry button after you enter a
    number. Try clicking the clear button to see the input and result clear.


Suggested practice exercises


The following additional exercises are designed to give you more opportunities to practice
what you’ve learned and to help you successfully master the lessons presented in this chapter.
■■Exercise 1 Learn more about positioning by adding more <div> elements to the
webpage to define a header and footer for the page. Use CSS style rules to set the
position.
■■Exercise 2 Learn more about CSS selectors by adding more elements to the page
and try setting the format by selecting the elements without using an id.
■■Exercise 3 Learn more about colors by changing the color scheme, using RGB values.
Free download pdf