Background and url() function

the link of the photo has die, I can’t pass the lesson, anyone can help me? please…

**Here is my code: **


<style>
  body {
    background: url("https://www.freecodecamp.org/imgr/MJAkxbh.png")
  }
</style>

Challenge: Create Texture by Adding a Subtle Pattern as a Background Image

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/create-texture-by-adding-a-subtle-pattern-as-a-background-image

@sonhipkmhd Take a look at your code you have typed www in the url which is wrong, you just have to copy paste the link given to you in the left column.

2 Likes
<style>
  body {
    background: url("freecodecamp.org/imgr/MJAkxbh.png")
  }
</style>
Is that your mean? I did it but it still doesn't work

Hi @sonhipkmhd, welcome to the forum. :wave:

Take a closer look at the text of the lesson. Within, you’ll find that it indicates the exact URL to use. You’ll find it in the last paragraph of the lesson, just above the “Run the Tests” button.

1 Like

@sonhipkmhd In the left column where the challenge is explained scroll down below they usually give you the conditions remember this for future challenges.
For now your code should look like this :

background:url(https://cdn-media-1.freecodecamp.org/imgr/MJAkxbh.png);
1 Like

thanks everyone, I passed, a big mistake from my eyes :))

thanks again!!! have a nice day!

2 Likes