The [attribute] Selector

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:
Example
and here’s my attempt:
Screenshot 2024-07-01 110244

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