12. Finishing Touches: Some Global Attributes

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.

Note

The game will consist of an HTML part, a script part, and a CSS part. All three components ...

Get HTML5 Guidelines for Web Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.