+ 3

Can someone pls help me check my png img code for html it won't show up when I put it in

<p align="center"><img src="7725467.png" width="180px></p>

23rd Dec 2022, 3:19 PM
Pelumi Tubi
Pelumi Tubi - avatar
40 Respostas
+ 8
I do not know whether the source (src) path is specified correctly, as I do not know your file structure. Is the image in the same folder as the html file? If not, the pathway is invalid and should be changed. You do not have: > At the end of the image tag. This is the problem because it breaks html syntax, the syntax is: <element> </element> Some elements are empty elements and do not require a closing tag ( </element> )in html5, such as: <br> <hr> <img> You also do not have second pair of quotation marks at the end of your value specified in the width attribute. This also breaks the syntax because it should be: width="value" Fix these 2 syntax problems and see if it works. If it doesn't, then it's the file path which is wrong.
23rd Dec 2022, 3:31 PM
Lamron
Lamron - avatar
+ 4
Thank you for trying to help
23rd Dec 2022, 7:10 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 3
Try putting the location of the image like http://www.sololearn that above is where the browser will go to and find the image
24th Dec 2022, 4:53 PM
Daniel Daniel
Daniel Daniel - avatar
+ 2
Try to do it on desktop, as it's more effective and easier, rather than doing it on mobile.
23rd Dec 2022, 3:36 PM
Lamron
Lamron - avatar
+ 2
It's supposed to look like this <p align="center"><img SRC="7374838.png" width="180px"></p>
23rd Dec 2022, 3:37 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 2
Again, you miss > at the end of <img> tag.
23rd Dec 2022, 3:38 PM
Lamron
Lamron - avatar
+ 2
Okeh, seen and edited
23rd Dec 2022, 3:39 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
That's the thing I don't have desktop and if I did I don't know if I can get solo learn on it
23rd Dec 2022, 3:38 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
Are you creating this on sololearn or mobile?
23rd Dec 2022, 3:39 PM
Lamron
Lamron - avatar
+ 1
I'm learning html and adding an img was a task on solo learn mobile
23rd Dec 2022, 3:40 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
On sololearn? If so, follow the instructions and make sure your code follows html syntax
23rd Dec 2022, 3:41 PM
Lamron
Lamron - avatar
+ 1
I did yet I don't see the image for my CV project
23rd Dec 2022, 6:52 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
Best way to add images in HTML without any errors is to create a folder for your project in that folder you should create index.html and style.css and then create a folder inside that folder for all the images you are going to use now in any ide for html let's say Visual studio when you press space bar in img src it will show all the images in the folder you can select your desired image in that droupdown very easy and convenient....
24th Dec 2022, 3:54 AM
Kathiri Mukesh Sai Naidu
+ 1
Okay
24th Dec 2022, 5:12 PM
Emad shamekh
Emad shamekh - avatar
+ 1
Try replacing it with http://www.sololearn.com/images/tree.jpg, which is a basic test file on sololearn.
24th Dec 2022, 6:32 PM
Gamma 482
Gamma 482 - avatar
+ 1
Gamma 482 thank you sooo much I was able to add my image. I really appreciate it.
24th Dec 2022, 8:50 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
The src for you url must be valid meaning it must have a path eg https:// or user://path For more solution Check out on https://www.instagram.com/world__programmers?r=nametag
24th Dec 2022, 9:21 PM
Tafadzwa Chikuvire
Tafadzwa Chikuvire - avatar
+ 1
Tafadzwa Chikuvire I tried that, but it did not work for images I found online
24th Dec 2022, 9:25 PM
Pelumi Tubi
Pelumi Tubi - avatar
+ 1
Pelumi Tubi show me what you did
24th Dec 2022, 9:27 PM
Tafadzwa Chikuvire
Tafadzwa Chikuvire - avatar
24th Dec 2022, 9:31 PM
Pelumi Tubi
Pelumi Tubi - avatar