0

How to make an image in HTML code appear when we are run/open html file?we need to use jpeg or jpg picture?I need help on this.

Pleaseeee

3rd Jun 2021, 6:49 AM
Huhu
8 Answers
+ 1
html image tags support jpeg/jpg as well as png, gif and even svg... however, you should provide the right path to it (either absolute or relative) and in sololearn context you can only access to images hosted on internet (http(s) absolute url)
3rd Jun 2021, 6:53 AM
visph
visph - avatar
+ 1
Using href attribute or how?
3rd Jun 2021, 6:54 AM
Huhu
+ 1
<img> do not have 'href' attribute but 'src' attribute ;P
3rd Jun 2021, 6:55 AM
visph
visph - avatar
+ 1
<img src="https://...."/>
3rd Jun 2021, 6:56 AM
Huhu
+ 1
Like that?
3rd Jun 2021, 6:56 AM
Huhu
+ 1
yes
3rd Jun 2021, 6:57 AM
visph
visph - avatar
+ 1
<img src="https://..." alt=""/>
3rd Jun 2021, 6:57 AM
Huhu
+ 1
Ok thanks
3rd Jun 2021, 6:57 AM
Huhu