My img tag in not working

// My image is not showing on my web page.

<main id="main">
  <h1>My Coding Journey </h1>
  <p id="title">My road to becoming a web designer</p>
  <div id="img-div">
    <figure>
    <img id="image" src="https://res.cloudinary.com/dg1hibyti/
              image/upload/v1613222976/logo_ewcprj.jpg">
         <figcaption></figcaption>
    </figure>
  </div>
 </main>type or paste code here

Hi,

Add:

width="...." height="...."

and check again!

The URL for your image has a line break. It’s seeing a new line so the URL is not being read correctly.

Take away the break from this
src="https://res.cloudinary.com/dg1hibyti/ image/upload/v1613222976/logo_ewcprj.jpg">
and you’ll see the image.

Don’t you think that the line break is due to wrapping functionality that each text editor provides?

With that many spaces? No.
Plus I copied it, took out the new line and was able to see the image.

1 Like

Wrapping shouldn’t insert line breaks.

But unless you really need it (like on very small screens) I wouldn’t suggest using wrapping in code editors. You should instead abide by a line length rule (like 80 characters) and either let an auto formatter (Prettier/ESLint) handle it or do it yourself.

<main id="main">
  <h1>My Coding Journey </h1>
  <p id="title">My road to becoming a web designer</p>
  <div id="img-div">
    <figure>
      
    <img id="image"src="https://res.cloudinary.com/dg1hibyti/image/upload/v1613222976/logo_ewcprj.jpg">
        
      <figcaption></figcaption>
    </figure>
  </div>
 </main>type or paste code here`

Do you have a question @jsuccess?

You should see your very large image now.