I am creating a basic HTML/CSS page just for practice. I am in the early stages. I am building a page about Spider-Man. At the top of the page, I have created a nav bar with hour different options:
About Me Movies Comics Toys
I have learned how to changed the color of a “clicked” link, and I changed it to yellow. Since I have clicked on all of them, they are all yellow. My question: Is there a way to assign different colors to them? For example, what if, after all of them have been clicked, I want the Movies word to be in green and the Comics word to be in purple? Can I do that?
Here is part of my HTML:
<div class="menu"> <a href=#AboutMe>About Me</a> <a href=#Movies>Movies</a> <a href=#Comics>Comics</a> <a href=#Toys>Toys</a> </div>
Here is what I have on CSS for this: