I keep getting a Oops, try again error. Did you remember to give your image a 1px solid #4682b4 border?


#1

I keep getting a Oops, try again error. Did you remember to give your image a 1px solid #4682b4 border?
here are the directions

Size and borders
Excellent! Your page is a little bland, though. Let's add a picture with a border.

Instructions
Add an to your HTML document. Its src attribute can point anywhere! (Check the Hint if you're stuck or need a picture.)
On the CSS tab, set your image's height to 100px and width to 300px.
On the CSS tab, give your image a border of 1px solid #4682b4.

<!DOCTYPE html>
<html>
	<head>
	  <link type="text/css" rel="stylesheet" href="stylesheet.css" />	
		<img src="https://myanimelist.cdn-dena.com/s/common/uploaded_files/1450182853-3b4627add3e380effd48bbe6d5aa5f9f.jpeg"/> <title>Result</title>
	</head>
	<body>
	  <h1>This is CSS</h1>
	    <p>I am learning CSS</p>
	</body>
</html>

h1 {
    font-family: Verdana, sans-serif;
    color: #576d94;
    height: 100px;
    width: 300px;
    border: 1px solid #4682b4;
    
}

p  {
    font-size: 18px;
    color: #4a4943;
    font-family: Garamond, serif;
}

#2

I am getting the same thing. I think that we did it right, not sure why it's flagging as wrong.


#3

You add your image in the head. You should add the <img > in the body. Then after in the css tab you give it the style.


#4

Ok I added the image in the head, but what do you mean by "Then after in the css tab you give it the style."


#5

What I said is you should add your image <img> in the body not in the head.
Then after in the css you put :
img {

}
And give it the value that you have on the instructions


#6

Oh ok, I got it thank you for your help :slight_smile:


#7

You welcome :slight_smile: . You can mark my answer as solved if it solves your issue.


#8

i think i did it right but i keep getting the same pop-up message !

i put the img tag in the body


#9

#10

Guys, a topic is to help the person who created the topic, if you have problems, create your own topic, if everyone responded to the same topic, it gets confusing who helped whom