I had an idea to give different colors to each link on my site’s navbar based on which part of the site they navigate to (i.e. what’s in their href value).
For example, if a link has the #top id in their href, it would turn red
when clicked or hovered over whereas a link with #contact would turn purple.
No. I mean, I want to add CSS controls specifically to the elements that have the #ids in their HREF values. I already have CSS controls for sections with the corresponding ids.