Quiz

  1. What's the difference between #id and .class?

    Yes, this is a classic question; everyone struggles with it.

    They are similar in that you make up the label and you apply it to the desired item(s)

    They are different because ID has to be unique. Like a primary key. So you can apply it to a maximum of 1 HTML element.

    Classes can be applied to any number of HTML elements, 1, 2, 10

    Think about people: They have one Identity, but they could fall into lots of classes: dancer, violinist, high-school senior, awesome.