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 trialAmanda Billings
1,597 PointsDo the link pseudo classes need to be declared in a certain order?
Does it matter what order the pseudo classes for links are listed? For example, is the proper syntax always a:link, a:visited, a:hover, a:focus in that order or does it not matter?
2 Answers
Tom Phillips
897 PointsYes, the last two (hover and focus) are at the end of the list so that they still override both visited and unvisited links. Plus itβs a solid habit especially when collaborating or working on a team.
Amanda Billings
1,597 PointsThanks, that makes sense.