Some browsers look at whether you’ve visited that page before and so change all the links to visited, some look at whether you’ve visited that anchor before and so only change the link you’ve clicked on to visited.
The only way I can think of to resolve the issue is to add an irrelevant query onto the end of the filename (but before the bookmark, eg
<li><a href="page.htm?s=1#section1">Link 1</a></li>
<li><a href="page.htm?s=2#section2">Link 2</a></li>
If your server hasn’t been told to do anything with the query then it will just ignore it and serve the page as normal, but as far as the browser is concerned, page.htm?s=1 is different from page.htm?s=2 so would colour the links individually. However, this may have other consequences that I can’t think of at the moment.
The link code posted was incorrect for this issue. The link posted is to a weather site. The idea behid this was that the user did not leave my site. I have seen this (target = “_blank”) suggested as a good idea.
Using target="_blank"
is not recommended. Trying to keep users on your site is a bad strategy. There are several reason why target=“_blank” is a bad idea.
The first is that it should be the user’s choice. If they want to open a link in a new window, every browser gives them the option to do so. If they don’t want to open a link in a new window, Opera is the only mainstream browser that allows them to override target=“_blank”, so 99% of people simply can’t make that decision.
The second reason is that there is no point - everyone knows how to use the ‘back’ button, so if they’ve navigated away from your site and want to return to it, they can do so. Keeping a window open on your site in the background isn’t going to help your business.
The third is that, with most browsers now operating both windows and tabs, the behaviour of target=“_blank” is unpredictable. Some browsers automatically open it in a new window, whereas most users would prefer it to open in a new tab within the existing window. If you give them the choice, they can decide that for themselves. If you force it on them, you’re taking away their chance to surf the web in the way that they want to.
The fourth is that it has accessibility and usability problems, particularly for people who are not using a standard desktop PC setup with keyboard and mouse.
The site will provide lists of cycle riders who have arrived at various towns on an enduurance bike ride. Other info such as distances, dates and times, average speed and time in hand will all be displayed in the table. The data is in a database and users are offered a number of selection criteria.
In that case, a table is probably an appropriate way to set it out!