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 Online Registration Form

Brian Bozarth
Brian Bozarth
11,292 Points

Okay to use pseudo-class :valid? I get an error in the CSS Validator.

In the Online-Registration-Form project, I'm getting an error in the CSS validator.

Unknown pseudo-element or pseudo-class :valid

I'm using it to change the alignment of the input text and also the font-style from italic to normal. Seems to work on all browsers.

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Hey Brian,

According to the Mozilla Developer Network :valid is "known" and is correct.

To be honest, while the "validators" can be helpful, I do not hold them to any actual authority.

Keep Coding! :dizzy: