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

Lawrence Lee
Lawrence Lee
4,240 Points

Quiz for Substring Matching Attribute Selectors

Okay....so I got the code structure right...but not filled in blank?

Here are the questions:

The __________ character is used to select an element whose attribute value ends with the specified substring.

I said this is the Ends with Selector and I typed the exact same name...and I got wrong.. I even took out the capitalization or quotation marks...still wrong..

The ______________ character is used to select an element whose attribute value contains at least one instance of the specified substring.

I said this is Contain Selector. I typed the exact same words and I still got wrong...I took out the quotation marks and capitalization as well...still got it wrong...

Anyone had this problem before?

3 Answers

James Barnett
James Barnett
39,199 Points

Try using the actual symbol you use in that selector

Ilie Ghiciuc
Ilie Ghiciuc
6,178 Points

The answer to the first question is << $ >>, and the answer to the second question is << * >> .

Richard Targett
Richard Targett
4,960 Points

In the teachers notes it shows what symbols are used for: begins with, ends with, etc.

The ^ , $, # I believe they were. (Not respectively)