Click on an element highlights other element
问题 Is there any way to change the attributes of an element when clicking on another element? For example, consider this approach where I have a link like so: <a href="#100">Click me!</a> And then close to it I have this: <span id="100" class="clickTarget">Important text</span> And then on my css file I have this: .clickTarget:target { color: #4f8dd5; } That means whenever the link is clicked, Important text changes its color. The problem with this approach is that the page is also scrolled even