// 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
moriel
February 13, 2021, 3:15pm
2
Hi,
Add:
width="...." height="...."
and check again!
Roma
February 13, 2021, 5:33pm
3
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?
Roma
February 13, 2021, 7:04pm
5
With that many spaces? No.
Plus I copied it, took out the new line and was able to see the image.
1 Like
lasjorg
February 13, 2021, 7:56pm
6
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`
Roma
February 13, 2021, 10:21pm
8
Do you have a question @jsuccess ?
You should see your very large image now.
system
Closed
August 15, 2021, 10:21am
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.