Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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