While you may be familiar with the CSS pseudo-classes for styling links, did you know there's a new pseudo-class for this as well? In this video, learn all of the link styling pseudo-classes and their correct order in your stylesheet.
- [Instructor] Pseudo classes are … defined as the selector type that is … responsible for describing a state change … of a given item on a page. … They have equal specificity to a class … so higher than an HTML element alone, … but lower than an ID. … As with any parts of CSS, … pseudo classes can stand alone … or they can be combined into a more complex selector. … For example you're probably already … familiar with LVHA, … the pseudo classes that are used for styling links. … You've probably seen all of these before. … Link, visited, hover, and active, … and you can remember them by remembering … the phrase, live happy, … and that is going to help you remember … exactly what order these pseudo classes need to go in … in order for the cascade to work correctly. … The link state is the unvisited links, … visited is after they've been visited, … hover is when you roll your mouse over the link like that, … and active is that moment after you click the link … before the next page loads. …
- Targeting classes and IDs
- Working with group selectors
- Targeting element attributes
- Targeting links with pseudo-class selectors
- Targeting child elements and empty elements
- Targeting parent, child, and sibling elements
- Best practices for CSS
- The impact of CSS selectors on performance
Skill Level Beginner
The power of selectors1m 8s
1. Review of Basic CSS
2. Combinator Selectors
3. Attribute Selectors
Simple attribute selectors2m 47s
4. Pseudo-Classes, Pseudo-Elements, and the Universal Selector
5. Choosing Selectors
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.