Adapted from: Robert W. Sebasta, Programming the World-Wide Web, 3rd Edition, Addison Wesley, 2006. Supporting: Contact Hour 2.
HTML5 and CSS3 is (almost) completely backwards compatible with HTML 4/XHTML 1 and CSS 2. Therefore, you should be able to do these exercises without too much difficulty. Nonetheless, you may wish to refresh your knowledge. Use the notes on HTML and CSS to help.
<big>
, <small>
, <hr />
, <p>
and <br />
tags.p1
, p2
and p3
.p1
style must use left and right margins of 20 pixels, a back round colour of pink, and foreground colour of blue.p2
style must use left and right margins of 30 pixels, a background colour of black, and a foreground colour of yellow.p3
style must use a text indent of 1 centimeter, a background colour of green, and a foreground colour of white.p1
, the second and fifth must use p2
, and the third and sixth must use p3
.For further practice, try any of the other exercises in Section 3.15 of Chris Bates, Web Programming: Building Internet Applications, 3rd Edition, John Wiley, 2006.