# Resetting the Status of a Link To Not Visited

**URL:** <https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-2\
**Created:** [December 18, 2024, 5:44pm UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248 "2024-12-18T17:44:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwilson25](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jwilson25/32/8000_2.png) [@jwilson25](https://forum.code.org/u/jwilson25)\
**Post date:** [December 18, 2024, 5:44pm UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248/1 "2024-12-18T17:44:48Z")

</div>

In CSD Unit 2 Lestson 18, students learn about pseudo-classes.  
One of the “states” of a link is “not visited”. This corresponds to the “a:link” pseudo-class.  
Once you visit a link, its state changes to “visited”, which triggers the “a:visited” pseudo-class.

Is there a way to reset the status of a link so that students can test the style for the “a:link” state?

Thanks!

John

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [December 18, 2024, 6:42pm UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248/2 "2024-12-18T18:42:53Z")

</div>

Hi @jwilson25,  
The state “visited” is pulled from the history of the browser. If you go to the browsers history and delete that web address (or clear history), it should reset.

~Michelle

---

<div class="post-metadata">

**Author:** ![jwilson25](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jwilson25/32/8000_2.png) [@jwilson25](https://forum.code.org/u/jwilson25)\
**Post date:** [December 18, 2024, 10:04pm UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248/3 "2024-12-18T22:04:03Z")

</div>

Thanks, @melynn! I’ll give that a try.

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [December 19, 2024, 2:27am UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248/4 "2024-12-19T02:27:32Z")

</div>

Mike (@mwood ) knows his stuff 😊. I am sure that is what he meant by “clear the cache”.

I did just test it with Web Lab. I tested the link using the SHARE button, then deleted the page in history and went back to the link and it no longer had the a:visited style. I have also taught kids to test in a secondary browser they use less often so it is easier and less impactful to delete link history.

~Michelle

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [December 19, 2024, 3:37pm UTC](https://forum.code.org/t/resetting-the-status-of-a-link-to-not-visited/40248/5 "2024-12-19T15:37:42Z")

</div>

I actually reported that lesson to [code.org](http://code.org) and suggested they use a different example because it’s unnecessarily complicated and a bit confusing if you are demoing the lesson more than once or trying to troubleshoot and redo it as a student.

Not sure if they’ll address it in a future update, but yes, it’s a bit tricky.

Mike
