This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by sam-jam
over 9 years

13/21 [resolved] Why is it not letting me change the background image? Am I doing something wrong?

I was trying to change the background image, and every time I tried, nothing changed. Here is my code:

<!DOCTYPE html>
<head>

<style>

body {
    text-align: center;
    background:pink;
    color:lavenderpurple;
    font-family: Helvetica;
}
h1 {
    text-align:center;
}

p {
    text-align: center;
    ]
</style>
</head>
<body>

So where exactly do I put the img src tag? I don’t understand that part clearly. It’s telling me to take out the h1 tag and put the img src, but I really don’t understand waht that means and where the tag should go. Can someone please help me? Thanks!

Answer 53d30315631fe976020000b2

0 votes

Permalink

You say you want to change the background image but maybe you mean the icon image?

The exercise is asking you to locate the line of code that you created in exercise 1/21, the line should look something like:

<h1>sam-jam</h1>

Once you locate it then you are asked to replace the entire line with this line:

<img src="https://codecademy-content.s3.amazonaws.com/courses/web-beginner-en-3pc6w/images/avatar.jpg" height="250" width="250">
points
Submitted by Judy
over 9 years

2 comments

sam-jam over 9 years

Thank you! That really helped!

Judy over 9 years

You’re welcome!