How to add a image in html?

+3 votes
asked Mar 21 by Ashrith Annamreddy (350 points)

1 Answer

+3 votes
answered Mar 22 by GULLY GAMER (520 points)
selected Apr 7 by Ashrith Annamreddy
 
Best answer
<img src="location of image with file name and extension of image also" width=100 height=400>
commented Mar 24 by Jude Hommel (100 points)
you should usually only use width or only use height otherwise you will have a squashed or stretched picture
commented Apr 13 by Ashrith Annamreddy (350 points)
What about the attribute alt?
commented Oct 2 by MrRodin (100 points)
Always use an alt tag -- this is good practice for accessibility.   
Question - I am having issues uploading images into my project on OnlineGDB and then linking to those images -- any suggestions?
I can link to web-based images by using the URL - but want to be able to add my own images to a project and put those in my webpage.
Suggestions?
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...