How to add a notification text in an HTML link and remove when clicked?

I’m creating a website which has daily news updates with URL links. I need to add a NEW! text on top of the link and once the user has visited it, need to remove the text. I searched for it everywhere what this feature is called and also went through anchor tag attribute in CSS i.e. a:visited {}, but it’s only CSS, how can I use for the above scenario?

Also if there’s any other way to deal with newly added links and after certain time, the NEW! text is gone, please let me know, I’m unable to find any resources online. Thanks.