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

JavaScript AJAX Basics Programming AJAX Programming AJAX Solution

Lainey Odette
Lainey Odette
18,618 Points

How did you know what the correct <ul> class was?

In the solution video, Dave updated the <ul> class name from "bulleted" (which styled the Employee Status list) to "rooms". There was no guidance on how he knew that. There are no classes in the HTML for either the Employee Status List or the Meeting Room List. I do see the styling in the CSS, but how am I supposed to know which styling was meant for this section of the page since the class isn't defined in the HTML? Do I just scroll through all the CSS and guess? In a real life situation, would I ask the designer? Thanks! That was the only thing I missed in the challenge, so not too bad! :)

In the previous video, it was mentioned in teachers notes. The class of ul and li items.

3 Answers

Steven Parker
Steven Parker
231,264 Points

If someone else wrote the CSS, they would probably tell you which class names they created for each purpose. Lacking that, you'd just need to read through the CSS and pick the class based on what settings are in the associated rule.

It's more likely that in a real situation you would create the CSS as well as the HTML, and in that case you can pick the class name yourself for both the CSS rule and HTML it will work on.

Lainey Odette
Lainey Odette
18,618 Points

Thank you, Steven! That helps!

Steven Vallarsa
Steven Vallarsa
10,842 Points

Nope LOL I figured it out on my own the hard way instead of thinking of looking at the notes.

Steven Parker
Steven Parker
231,264 Points

The "hard way" will often guarantee the longest retention. :wink:

Steven Vallarsa
Steven Vallarsa
10,842 Points

We weren't properly prepped for this challenge. I had to dig through the CSS to find what the <ul> and <li> class names needed to be.

Steven Parker
Steven Parker
231,264 Points

Did you see Norman's comment above? They are called out in the Teacher's Notes.