26. Links and text decoration


#1


https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/4/5?curriculum_id=50579fb998b470000202dc8b


Oops, try again. Did you remember to set your link's text-decoration to none;?


<!DOCTYPE html>
<html>
	<head>
	<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	<a href="https://www.codecademy.com">codecademy</a>
	<img src="https://www.ethos3.com/wp-content/uploads/2014/11/stock-photo-600x405.jpg"/>
	<h1>hello</h1>
	<h1>hello2</h1>
	<p>hhvghvhvhgvkvgvh</p>
	<p>fdrghvdrdvnvftnjhhch</p>
	
	</body>
</html>

h1{
    font-family:Verdana,sans-serif;
    color:#576D94;
    
}
p{
    font-size:18px;
    color: #4A4943;
    font-family:Garamond,serif;
}
img{
    height:100px;
    width:300px;
    border:1px solid #4682b4;
}
a{
  text-decoration:none;
  color:#cc0000;
}


#2

This exercise is a lil buggy. I highly recommend trying a different browser such as firefox. This question really doesn't work well with chrome.


#3

this exercise is currently not working chrome, try IE or FF


#4

h1
{
font-family:Verdana,sans-serif;
color:#576d94;
}
p
{
font-size:18px;
color:#4a4943;
font-family:Garamond,serif;

}
img
{
height:100px;
width:300px;
border:1px solid #4682b4;
}
a
{ text-decoration:none;
color:#cc0000;
}
i too did the same but showing error!
Oops, try again. Did you remember to set your link's text-decoration to none;?
showing this!
what to do??


#5

did you try oscars suggestion:

you make no indication you did.


#6

During this exercise, you have a block element inside an inline element. This only works in HTML 5, not HTML 4. Only browsers that support HTML 5 will be able to run this code. You might want to update your browser


#7

You are saying chrome and chromium do not support html5? I find this hard to believe, chrome is one of the most used browsers


#8

I am saying you might need to update the browser or maybe chrome is not running HTML5 for that page or something like that.


#9

this link may help you understand what it cannot support


#10

still not buying it, i did this exercise in chrome and chromium at beginning of this year, and it worked fine. I think this is a bug at codecademy site, there is a ticket about


#11


#12

this is the text-decoration-color property, which is pretty new, what we use here is text-decoration which already exists in html4


#13

got the right one this time

https://www.w3schools.com/cssref/pr_text_text-decoration.asp


#14

#15


#16

see? a browser that doesn't support text-decoration would require a browser from the stone-age


#17

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