In this last chapter, we will look at some seemingly insignificant global attributes of the
HTMLElement interface. Our leitmotif in this chapter will be the development of a simple game that requires putting terms in a particular order following given criteria, similar to the preliminary round of the popular TV show Who Wants to Be a Millionaire. We call our game 1- 2-3-4! It involves the capital cities of the 27 EU member states. Can you put the capital cities in order by number of inhabitants? Do you know which city is farther north, south, west, or east? If not, you probably will by the end of this chapter.
The game will consist of an HTML part, a script part, and a CSS part. All three components ...