Hello, I started learning CSS and learning about the different selectors. I wanted to try the attribute selector but somehow it didn’t want to show up on the web page, and it also didn’t want to save the document in the code editor. I followed the example exactly but it didn’t work.
Here’s the example:
and here’s my attempt:
1 Like
Make sure there are no extra spaces in ur code
a[href=“Careers - Join Capri-Sun Group”] {
color: green;
}
2 Likes
Thank you, I had a space in the property value, I didn’t notice it which is quite stupid of me, but I’ll make sure to look out for spaces in my code.
No worries at all It’s easy to overlook small things like spaces. I’m glad we could figure it out. Happy coding
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.