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 CSS Foundations Selectors Basic Attribute Selectors

Misty Majewski
Misty Majewski
5,276 Points

What is a title attribute

I am attempting to do the first task of the challenge. Apparently I can't figure out what a title attribute is so I cannot get it right. I have watched the video 3 times now and it does not say anything about a title attribute. I don't know what to do. I don't want to skip the challenge but I am at a loss.

4 Answers

James Barnett
James Barnett
39,199 Points

Check out this handy list of CSS CSS selectors

What you want is #10.


In case you are a still a little hazy on what exactly an attribute is, here's an HTML refresher

.

So the selector you are using here is helpfully named an attribute selector.

Anthony Hind
Anthony Hind
5,715 Points

Without giving you the answer you have to target the element with [ ] the square brackets so it could be [******] {color: darkred;}

Erick Bongo
Erick Bongo
8,539 Points

Hi Misty, it's always helpful to post a link to the code challenge your stuck on and to give an example of your code.

When he says title attribute he is referring to tags which have been assigned a title

Example

<p title="title attribute" </p>

<h2 title="title attribute" </h2>

Hope that helps

James Barnett
James Barnett
39,199 Points

Davie Crellin

> it's always helpful to post a link to the code challenge your stuck on

A while back Treehouse rolled out content tags. On posts created via content tags link to the relevant video/code challenge in the left-hand side bar.

Imgur

Erick Bongo
Erick Bongo
8,539 Points

Cheers for pointing that out, I'd never noticed.

Misty Majewski
Misty Majewski
5,276 Points

Thank you soooo much. I finally figured it out.. You all were very helpful!!!!