+ 2

Guys

Now I am at images in HTML Coding. The question is that when I am trying to mention an image.jpg in the code, it doesn't show any image in the output. Can anyone plz tell me where I am going wrong or what are the reasons it's not giving output with an image.

18th May 2017, 5:48 PM
Ailaf Sajjad kapdi
Ailaf Sajjad kapdi - avatar
8 Answers
+ 21
<img src="(Any image link)" alt="NA"> <!-- Using only image.jpg would not work here I guess(?) -->
18th May 2017, 6:00 PM
Dev
Dev - avatar
+ 21
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="https://www.sololearn.com/images/fb-story-icon.jpg" alt="NA"> </body> </html>
20th May 2017, 4:40 PM
Dev
Dev - avatar
+ 19
Ok! Done ...Sorry :-\
18th May 2017, 6:13 PM
Dev
Dev - avatar
+ 18
@Serena Well, it doesn't require a closing tag or a forward slash : https://www.w3schools.com/tags/tag_img.asp
20th May 2017, 6:33 PM
Dev
Dev - avatar
+ 3
Dayve Dayve Dayve, you don't need to close img tag
18th May 2017, 6:12 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
+ 2
So guys can I plz get the full coding starting from <html> with a real image and ending with html itself.
20th May 2017, 4:37 PM
Ailaf Sajjad kapdi
Ailaf Sajjad kapdi - avatar