Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Customizing Colors and Fonts Use Color in CSS

Chi Lun Ip
Chi Lun Ip
1,417 Points

What is the purpose of coding the "pseudo class"? I did not type it in and still I see no difference after visiting.

Can anyone tell me?

2 Answers

James Barnett
James Barnett
39,199 Points

In the teacher's notes under the video it notes ...

Pseudo-Class - Dynamic selectors that change based on user interaction with the browser, such as hovering over a link, for example.

In particular in this video they are using the visited pseudo-class and removing the default styling from it.

Andrew Dushane
Andrew Dushane
9,264 Points

It depends on which pseudo class is being used, but generally they let you get more specific (like the :first-child psuedo class) and/or dynamic (like the :hover psuedo class) with your CSS. http://www.w3.org/TR/CSS2/selector.html#pseudo-class-selectors