Image not opening

Image not loading
I’m running my code but the image is not opening

<div id="img-div"> 
    <img id="image" src="https://codepen.io/freeCodeCamp/full/zNqgVx." alt="#">
    <figure id="img-caption">
      <figcaption>
        Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.
        </figcaption>
      </figure>
  </div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Challenge: Build a Tribute Page

Link to the challenge:

You are linking to a Codepen, not an image.

This is the URL to the image used by the example project.

https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg

BTW, you are not supposed to copy the example project, if that is what you are doing. Create your own tribute page.


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

then what should I do if not copying the project?

There is a tip in the editor for inserting code into your messages. All you have to do is click on the open and close </> tag button located at the top of the editor menu bar. Then insert code inside '' type or paste code here ``

They gave you an example, so that you get a basic idea of what to make. The code written in your project should be 100% yours

You were never asked to copy the project. You were given it as an example.

Pick your own subject, create your own design, write your own code. Copying the example project code is against the Academic Honesty Policy that you have to agree to.

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