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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.