+ 3

How do I add images to my HTML?

I think I have tried everything, even google, someone please hel p me. my code looks like this; <img src="project.jpg">

2nd Mar 2018, 8:42 AM
Virginia Ndirangu
Virginia Ndirangu - avatar
7 ответов
+ 27
If your code looks like this, then the project.jpg file must be in the same folder as your html file.
2nd Mar 2018, 8:51 AM
Igor Makarsky
Igor Makarsky - avatar
+ 24
try this : <img src ="link to your project.jpg/png" alt="" width="100px" height="200px"/> https://www.sololearn.com/learn/HTML/1030/?ref=app
2nd Mar 2018, 9:01 AM
Youssef Ouamou
Youssef Ouamou - avatar
+ 4
<img src= "project.jpg"> <!-- must be same folder and make sure check file name & extension. -->.😎
2nd Mar 2018, 9:09 AM
Sashikumar😎SK
Sashikumar😎SK - avatar
+ 2
It is in the same folder
2nd Mar 2018, 8:53 AM
Virginia Ndirangu
Virginia Ndirangu - avatar
+ 2
Try this: https://code.sololearn.com/WW6t4B73kJVz/?ref=app You can get the Dropbox app on your phone.
3rd Mar 2018, 2:06 AM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 2
<html> <head> <title>Image<\title> <\head> <body> <img src ="images\img.jpg" alt="" width="100px" height="20px"/><!- - link to the folder where you’ve your image...- -> <\body> <\html>
6th Mar 2018, 6:26 AM
RICHARD ROY
RICHARD ROY - avatar
0
I found the problem, every time I add an image to the folder as let's say, (pic1.jpeg) the editor saves it as (pic1.jpeg.jpeg), that's why it didn't show up in the browser.
5th Mar 2018, 3:44 AM
Virginia Ndirangu
Virginia Ndirangu - avatar