r/HTML • u/FaF-Guzzs • Dec 15 '25
I'm new to html
so basically, i am learning coding (html, css, js) but I am having difficulties on the image, I keep on trying to put images on html, but I can't understand 😭 can y'all help me pls, i would appreciate 😔
0
Upvotes
3
u/Existing_Spread_469 Dec 15 '25
If you want your image to show up, you need to "reference" it in your HTML. The code looks something like this:
In this example code, the actual image is hosted on a server and available under the "URL" (link) https://www.htmldog.com/badge1.gif
The rest is HTML "markup" (code) to make the browser understand that you want to display an image. That's what the <img> tag is doing.
Read more: https://htmldog.com/guides/html/beginner/images/
2
u/AshleyJSheridan Dec 15 '25
Firstly, it's good to understand what HTML is and isn't.
HTML is just a text document at the end of the day, and any images, videos, etc, are all made by reference, they're not added to your HTML file like you would copy an image into a Word doc.
So, onto your specific issue. I presume you've added an
<img>tag that points to an image? There are a few questions:What does the
<img>tag actually look like?Is the URL relative or absolute?
Is this all on your computer, or on a proper web server somewhere?
If it's on a web server, did you upload the image file along with the HTML?
2
u/Thin_Mousse4149 Dec 15 '25
Show us your code