Class=visited is green instead of orange


#1


https://www.codecademy.com/en/courses/web-beginner-en-WF0CF/3/2?curriculum_id=50579fb998b470000202dc8b


class =visited should be orange


Replace this line with your code. 
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title></title>
	</head>
	<body>
		<div>
		<a href ="http://www.wikihow.com/Parkour" class=link>How to Parkour</a>
		<p><a href ="http://tse1.mm.bing.net/th?id=OIP.M0d500c87e07f790290c093c961ee7893H0&w=182&h=183&c=7&rs=1&qlt=90&cb=11&pid=3.1&rm=2"<class=visited>How to squirrel suit fly</a></p>
		<p><a href ="http://tse1.mm.bing.net/th?id=OIP.Me385d059ad8e790ad4fb6f4a1ba37e39H0&w=135&h=105&c=7&rs=1&qlt=90&cb=11&pid=3.1&rm=2>Do Not try this at home <class=hover</a></p>
			
		</div>
	</body>
</html>


#2

Is this markup raising errors?

First off, we won't need to assign any class names, so class=link, <class=visited and <class=hover may be removed.

Pseudo-classes are managed by the browser. All <a href="#"></a> elements have a :link property.. URL's that are found in the browser history add a :visited property which if written after the :link rule will override it. The :hover property is added when a mouse event occurs that enters the hot zone of the link text or the link image. A corresponding property is :focus which is added when a user tabs onto the link. A click event on the link results in the :active property being added to the link element.

The following should be added to the stylesheet.css tab:

a:link {

}
a:visited {

}
a:hover {

}

Insert the colors given in the instructions and submit. You will then be able to see the colors you expect. Hover on the links to see their color change. Be sure you have saved your work before clicking a link. Use your back button to return to the lesson. Now you will see the visited color.


#3

thank you very much. Understand a little better now. I didn't get an error mesg, it just didn't look right.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.