How do you put a image on a html doc. I now I start off with the tag <img> but what then. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How do you put a image on a html doc. I now I start off with the tag <img> but what then.

6th Jul 2019, 3:30 AM
Mark Barnes
3 Answers
+ 4
use in this format: <img src=“url goes here” id=“optional”/>
6th Jul 2019, 3:39 AM
Pikachu
Pikachu - avatar
+ 40
First you find an image and copy its URL (a right mouse button click on a computer or a long tap on a phone should help). Paste into the src attribute. Save your code and refresh the page or click RUN in the Sololearn Playground. That should do. You can use this code as a manual: https://code.sololearn.com/WhmK5WE5bgSe/?ref=app
10th Jul 2019, 5:18 PM
🇺🇦 Vitya 🇺🇦
🇺🇦 Vitya 🇺🇦 - avatar
+ 6
The url is the web or file location of your image.
6th Jul 2019, 4:55 AM
Sonic
Sonic - avatar