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

HTML HTML Forms Organizing Forms The Label Element

Dee K
Dee K
17,815 Points

Label.light?

Does anyone know exactly what label.light is referring to?

It is this on line 94 under main.css. What is .light referring to?

label.light {
  font-weight: 300;
  display: inline;
}

Thanks!

1 Answer

Ash Scott
Ash Scott
435 Points

Hi Dee K,

This selector is targeting any <label></label> element with the class of light. It will target any HTML code which looks like so:

<label class="light"></label>

The CSS is making the font a lighter weight and then displaying it inline, or next to its adjacent elements.

Hope this clears your question up! Ash

Dee K
Dee K
17,815 Points

Thanks Ash! That clears up any questions that I had.

Ash Scott
Ash Scott
435 Points

No problem! Anything else feel free to ask :)