Sorry if this sounds like a really stupid question, but I need to make a link change colour when you are on the page it links to.
For example, when you are on the ‘Questions’ page of StackOverflow, the link at the top changes colour. How do you do this?
It’s a server-side thing — when rendering the page, add a class like ‘current-page’ to the link. Then you can style it separately from the other links.
For example, StackOverflow renders the links with
class='youarehere'when it points to the page you’re already on.