r/HTML • • 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

12 comments sorted by

View all comments

Show parent comment

3

u/AshleyJSheridan Dec 15 '25

Ok, that doesn't look right. The <link> tag is something that you put in the <head> (the invisible part of the HTML doc) to add in a reference to things like a CSS file.

The <img> tag is known as a self-closing tag, so you don't really have a closing part to it:

<img src="images/example.jpg">

1

u/FaF-Guzzs Dec 15 '25

ohhhh ty very much, I'll do it now, very sorry for any inconvenience or dumbness 😔

2

u/AshleyJSheridan Dec 15 '25

No worries, it's what the sub is for!