Adding image in web page- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Adding image in web page-

How can i add my image in my webpage?

5th Sep 2018, 8:21 AM
Rudro Saha🇧🇩
Rudro Saha🇧🇩 - avatar
11 Answers
+ 8
<img src="filename.Extension">
5th Sep 2018, 11:48 AM
Appiah Boadu Prince Kwabena
Appiah Boadu Prince Kwabena - avatar
+ 8
Always add to a <body> tag
5th Sep 2018, 11:49 AM
Appiah Boadu Prince Kwabena
Appiah Boadu Prince Kwabena - avatar
+ 4
Hi Rudro Saha, <img src="file_source"> I hope this helps you. Best wishes, Manan
5th Sep 2018, 8:22 AM
Manan
Manan - avatar
+ 2
<img src="name.jpg" alt="alternative text bla bla bla" title="some title text">
5th Sep 2018, 2:02 PM
Евгений Лисовой
Евгений Лисовой - avatar
+ 2
Open a folder. Put the photo and the page in it ( And you already wrote the image code on the page...) If so, the photo will appear on the page... So easy!
6th Sep 2018, 7:29 AM
Coven Witch
+ 1
Use Dropbox to create the link and read the article below!! It must help you!! https://www.sololearn.com/discuss/1054246/?ref=app
5th Sep 2018, 1:34 PM
AL Araf
AL Araf - avatar
+ 1
<img src="enter your path of image file" >
5th Sep 2018, 2:06 PM
Abhay Singh
Abhay Singh - avatar
+ 1
<img src= “whatever the source is”> example: if i have a image in my file with the same directory as my code... such as if i have a image named “screenshot1.jpg”... i would have to put it in the same directory as my code and type it as <img src= “screenshot1.jpg”> you can also copy and paste img source from different sources such as http and such. jus make sure that its ok for you to use it if you do. and dont forget to add the alt=“name” just incase the image doesnt load for some people
6th Sep 2018, 4:49 AM
Wesley Coleman
Wesley Coleman - avatar
0
Simply use the html tag "<img>"(in the html body) this tag is empty so it doesn't have a closin tag. After that you can add your link in the tag using the "src" which basically means source. Where you got your image from. The get the URL after that copy it onto your <img src"PasteimageURLhere">.
6th Sep 2018, 12:21 PM
Siyabonga Zuma
Siyabonga Zuma - avatar
0
to add image to website you have to use this code: <IMG SRC="path of file"></IMG> to change it height and width you have to do: <IMG SRC="path of file"height="50px"width="60px"></IMG>
10th Sep 2018, 6:35 AM
Karan raj
- 2
Learn how to work with images here: https://www.w3schools.com/html/html_images.asp
5th Sep 2018, 8:45 PM
Vasile Eftodii
Vasile Eftodii - avatar