Can not pass 25


#1

<!DOCTYPE html>
<html>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <head>
        <title>Result</title>
    </head>
    <body>
    <h1>Hello World!</h1>
    <p>This is ROBOT</P>
    <img src="http://bit.ly/NnVbxt"/>
    </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;
    }

I dont know what was error but it still showing the same error
Oops, try again.
Did you remember to give your image a 1px solid #4682b4 border?

tried refreshing and reset code.

Thanks.


#2

This is the line causing the problem. Change the closing tag to </p>.


#3

Its not working. Thanks.


#4

Try writing this line inside the <head></head>., after the title.


#5

Np same error Oops, try again.
Did you remember to give your image a 1px solid #4682b4 border? Thanks


#6

So your HTML looks like this, now?

<!DOCTYPE html>
<html>
    <head>
        <title>Result</title>
        <link type="text/css" rel="stylesheet" href="stylesheet.css">
    </head>
    <body>
        <h1>Hello World!</h1>
        <p>This is ROBOT</p>
        <img src="http://bit.ly/NnVbxt">
    </body>
</html>

#8

I am getting this error:

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

Here's my HTML and CSS code:

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css" />
        <title>Result</title>
    </head>
    <body>
        <h1>Anything You Want</h1>
        <p>Any text you like.</P><br>
        <img src="http://studio3087.com/images/Studio3087logo.png" />
    </body>
</html>

CSS below

h1 {
    font-family:Verdana,sans-serif;
    color:#576d94;
}

p {
    font-family:Garamond,serif;
    font-size:18px;
    color:#4a4943;
}
img {
    height:100px;
    width:300px;
    border:1px solid #4682b4;
}

#9

I'm passing with all the code samples on this palge so cannot come up with workable answer as to what the problem is. Might it be browser related? I'm using Firefox.


#10

I too am having this problem.


#11

Which browser are you using? Have you tried another browser?


#12

Hi. Thanks for the quick response. Using chrome. I will try some different browsers now.


#13

I have tried with the following browsers:

Chrome
firefox
edge
internet explorer
brave

None of them worked.

have the same error message as netsolver70493.

"Did you remember to give your image a 1px solid #4682b4 border?"

This is my HTML:

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
	</head>
	<body>
	    
	    <h1>Anything You Want!</h1>
	    
	    <p>The quick brown fox jumped over the lazy dog.</p>
	    
	    <img src="https://cdn.theatlantic.com/assets/media/img/mt/2016/01/superman/lead_960.jpg?1454104448">
	    
	</body>
</html>

This is my CSS:

h1{
    font-family: Verdana, sans-serif;
    color: #576d94;
}

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

img{
    height: 100px;
    width: 300px;
    border: width 1px solid #4682b4;
}

#14

I might not have tested this in the right exercise. Can somebody please post a link to the exercise? Thank you.


#15

Here you go.

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


#16

Hopefully the link above works.

If not, the exercise can be found at the following:

HTML and CSS > Unit 4 > Lesson: CSS: An overview > 25. Size and borders.


#17

This is working as expected. @albionsrefuge asked if it could be a zoom related issue and upon testing I succeeded in reproducing the error condition.

Ctrl/Cmd + 0 will fix it.


#18

Thanks very much. It worked.


#19

I have had the same problem with the same answer :disappointed::

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

but after setting up my browser (Chrome) page to original size (100%) it passed and my code has been accepted.

Hope it helps you too :slight_smile:


#23

Resetting my zoom (CRTL + 0) suddenly made it work.


#24

Today by somehow it worked, Thanks