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

please help

I have been working on this for two days if anyone can help that would be great...The character is used to select an element whose attribute value begins with the specified substring.? The character is used to select an element whose attribute value contains at least one instance of the specified substring.? has anyone else had this problem b4?

6 Answers

Hi Marsha,

This should answer you question.

Substring matching attribute selectors

If not just let me know and a hint will be on its way :)

Hi Marsha,

Just by going off what you have said above without seeing the code.

For the begins with attr i see no problem sorry. What error msg are you getting? Is it possible to post your code and maybe link to the challenge so i can do it myself?

Without seeing the ends with attr i can't help, sorry.

If you can post a link to your challenge so i can do it, then that would be great.

cheers

The character is used to select an element whose attribute value begins with the specified substring.? well I put this a[href^="https"] { color: #FF6347; border-bottom: 1px dotted; } and its still saying I am wrong

The character is used to select an element whose attribute value ends with the specified substring. and I tried this <a href="details.pdf">Details</a> and its saying I'm wrong:( not sure what I 'm doing wrong here?

<a href="http://teamtreehouse.com/library/css-foundations/advanced-selectors/substring-matching-attribute-selectors</a>

sorry the link is not showing up

The forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.

Hi Marsha,

try this for entering your code.

example 1

with your cursor on a new line type 3 back ticks then html (if html is the code you are posting)

then press enter twice .

on this line type three back ticks.

now you just need to place your cursor on the line between and paste your code.

example 2

copy your code, on a new line paste it in a post.

place your cursor at the beginning of the first line of code then press the spacebar 4 times. place your cursor at the beginning of the next line of code and do the same, repeat this for each line of code.

as far as your link goes.

type some text e.g. my link then at the start of my link place a opening square bracket… [my link

then at the end place a closing square bracket… my link]

so now you have my link with square brackets at the beginning and end

then WITHOUT any spaces, straight after the closing square bracket place open and close parenthesis.

copy the link you wish to share, place your cursor between the parenthesis and paste.

the words my link should show in blue, just like in the post of james "how to type code in the forum" and when clicked on it takes us to the url you pasted.

sorry if this is showing you what you already know, I'm just not sure what problem your having posting code or a link so i thought i would include everything.

it appears i turned my text into code by accident, and i can't get to edit my post for some reason.

it should have been( html ) and then to end your code ( )

a