How to insert images with html | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

How to insert images with html

Hi I'm working on my first coding project, I'm very new to coding and to be honest I'm not to good at it either but I want to get better. My question is, how do I insert a google image into my code? Thanks!

3rd Dec 2018, 5:44 PM
Jojo C
Jojo C - avatar
3 ответов
+ 1
Syntax example <img alt="description" src="path_img/image.png" [width="x px" height="y px"] />
3rd Dec 2018, 5:47 PM
MBZH31
MBZH31 - avatar
+ 1
supposed you want to add image with this path = "image/myimage.jpg" then you should code: <img src="image/myimage.jpg" alt="alternative description"/> for google image, right click on th image of your choosing and select copy image address then change the "image/myimage.jpg" with that url.
3rd Dec 2018, 6:54 PM
Andjaradji Rooseno
Andjaradji Rooseno - avatar