Problem Uploading Image

IN the My Tribute page I can’t get the image to load. Have coded, following FCC instructions, as follows:

 <div id="image-div">
      <img id="image" src="https://en.wikipedia.org/wiki/Muhammad_Ali#/media/File:Muhammad_Ali_NYWTS.jpg" alt="">
      <img-caption id="img-caption"> The young Ali looking away from the camera
      </img-caption> 
    </div>

Any help appreciated

PeterL

I assume the link you used refers to the Wikipedia “image download page”. If you right-click the image there you can copy this link, which seems to work …

https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Muhammad_Ali_NYWTS.jpg/800px-Muhammad_Ali_NYWTS.jpg

Image did not upload when using this code within the image-tag:

src=“https://en.wikipedia.org/wiki/Muhammad_Ali#/media/File:Muhammad_Ali_NYWTS.jpg” alt=""

Any help appreciated

I answered on your other post:

Please do not create multiple topics for the same issue. I have merged your topics.

Please not that in the original post the html, which I had copied out to be seen, failed to show in the message.

I had no choice but to rewrite the post, with the angle-tags removed so the code could be read.

PeterL

You can edit your comments in a topic. You can also add additional, clarifying, comments to a topic thread. Please do not create duplicate topics.

In the future, when you enter a code block into a forum post, you can precede it with a separate line of three backticks and follow it with a separate line of three backticks to show your code formatted as code.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

Nice to be informed after the event!

Hi Michael!

Just re-ran your code suggestion and its working perfectly. Many thanks,

PeterL

1 Like