Debaashish84
Coder
I have been trying to insert images in my html files, but they are ending up being broken images. I really can't figure out where exactly l am going wrong. Is there anybody to make some suggestions ?
Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!
path-to/image.png will mean the image image.png is in a folder called path-to, and that folder is in the same folder as the html file../image-name.jpeg if the html file is also on your desktop, or you can also use absolute file paths, which start with / meaning the root directory, so it'll be something like /Users/[user name]/Desktop/image-name.jpeg assuming you're on windows.if you refer to the image direclty asI have been trying to insert images in my html files, but they are ending up being broken images. I really can't figure out where exactly l am going wrong. Is there anybody to make some suggestions ?
<img src="imagname.jpg">
<img src="./images/imagname.jpg">
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.