Class selector essentials


show more Class selector essentials provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design show less
please wait ...

Class selector essentials

As a follow on to the previous video about ID selectors in this video we're going to talk about Class selectors. You might at first think there are some similarities and in some ways there are. If we look into the markup here, we can see that we started with the class of first and then there's a list item with a class of last. And there are few other classes scattered throughout the document. The rule with classes is that unlike IDs, you can have as many instances of a given class as you want. So if we scroll down a little bit, we'll discover that there's a paragraph of the class of first, just like we had a list item with the class of first.

We can have as many firsts as we want, anytime something is the what we think of as being first, we can give it that class. In a sense, classes are used to collect elements into sets, like all of the things that are first, or all of the hyperlinks in a document that say, you know, the point to more details about something so on a magazi...

Class selector essentials
Video duration: 4m 8s 6h 8m Intermediate

Viewers:

Class selector essentials provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design

Subject:
Web
Software:
CSS
Author:
please wait ...