Hello, I need help linking between 2 pages using this solution First page (first.html):
<a href="sample.html#abc">1</a>
<a href="sample.html#def">2</a>
<a href="sample.html#ghi">3</a>
Second page (sample.html):
<p id="abc">abc</p>
<p id="def">def</p>
<p id="ghi">ghi</p>
Question: Is there a way to style the element that the user is linked to using only CSS? I know it can be done with JavaScript, but I prefer to do it in CSS. Any help would be appreciated!
Example: If the user clicks on link 3 (ghi) -> the text 'ghi' turns red or is underlined
Thank you in advance! :)