How to insert an image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to insert an image?

what does it mean by "in the same html file "?

2nd Sep 2018, 11:45 PM
Hend Elgohary
Hend Elgohary - avatar
2 Answers
+ 1
Just include <img src=ā€œimage_source.jpgā€ /> in your HTML file. The ā€œimage_sourceā€ will be whatever you named the image, and the ā€œjpgā€ depends on the extension of your image file, so it could be .gif, .png, .svg, .jpg, et cetera. Make sure your image exists in the same folder as your HTML file. You may also add a folder to the same folder as your HTML file and store the image there. Just access it with <img src=ā€œfolder_name/image_source.jpgā€ />
2nd Sep 2018, 11:53 PM
NULL
NULL - avatar
0
There are already similar (if not identical) questions posted. You can find the answers using the search bar. Please help keep the quality of posts high in this section of the forum by reviewing the following: https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community/ Be sure not to miss the link to the Community Guidelines toward the bottom of the article. Happy coding! P.S. Please see the following post for a humorous interpretation (but still an earnest plea). https://www.sololearn.com/post/10362/?ref=app
3rd Sep 2018, 3:12 AM
Janningā­
Janningā­ - avatar