I am having difficulty identifying the correct selector for step 57 in the Building a Registration Form. Would you please see my CSS code below and assist me?
Step 57
Last, but not least, change the text color of the terms and conditions link to #dfdfe2 .
styles.css
a[name="terms"] {
font-color: #dfdfe2;```
}
*index.html portion being referenced*
<input type="checkbox" name="terms" class="inline" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/" target="_blank">terms and conditions</a>
I tried to use text-color and it did not work. I received the same hint. Is there another attribute that I should be using within the brackets after the a element selector?
I have tried to reference a[href=“target_blank”] with color: as the property but I am still receiving the same error message. Is the href properly being referenced or is there another attribute that I should try using?
Your <a> tag doesn’t seem to have an href =“target_blank”… the href in your code is " https://www.fr…". Look at your <a> tag, and decide what you’d like to use to select it.
Haha, I have been strugglinging with this last step too.
I’ve tried:
a [href=“freeCodeCamp's Terms of Service”]
{color: #dfdfe2;}
and the color did change but FCC did not let me pass.
Until I just tried:
a { color: #dfdfe2;}
and I’ve passed.
So I guess, FCC asked us only to use a element selector and not attribute selectors. Or was the first solution (a [href=…) wrong?
Sorry, I am new here