How can I style an a href that does not have a class or id? [duplicate]

<a href=#questions>Questions</a>

Is there a way to style the above without styling all elements within an a tag? Also, I can't change the html.

I tried this but it didn't work:

a[href="#comments"] {
font-color: orange;
}```


Read more here: https://stackoverflow.com/questions/64408715/how-can-i-style-an-a-href-that-does-not-have-a-class-or-id

Content Attribution

This content was originally published by Karen at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: