Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Summary

This chapter provided an introduction to CSS and explained its role in helping to influence the presentation of content on web pages. You learned the basic syntax required to formulate CSS style rules. This included how to work with inline styles, embedded style sheets, and external style sheets. You also learned how to use CSS to style fonts, text, and foreground and background colors. On top of all this, you learned how to create the Rock, Paper, Scissors game.

Challenges

  1. The Rock, Paper, Scissors game currently makes the assumption that the player knows the rules for playing the game. Rather than rely on this assumption, consider creating another document with detailed instructions for playing the game and add a link to that document on the RockPaperScissors.html document.

  2. Let’s spruce things up a bit by modifying the color of the document’s paragraph to something more attractive than the default color of black.

  3. Lastly, using the em element, enclose the span element, so that the player, computer, and result values are given additional emphasis when displayed.



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial