The image is not getting open by writing"tree.jpg"(tree=image name).the image is only get open by writing full source(D..\..jpg) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

The image is not getting open by writing"tree.jpg"(tree=image name).the image is only get open by writing full source(D..\..jpg)

<!DOCTYPE html> <html> <head> <title>Image Tag </title> </head> <body> <img src="......."/> </body> </html>

7th May 2017, 3:34 PM
Ashiesh Watts
Ashiesh Watts - avatar
3 Answers
+ 4
if you want to use a relative path you can use ./ for the folder of your html file otherwise please let us see your code
7th May 2017, 3:44 PM
Oliver
+ 1
@Oliver@Serena Yvonne...I means to say that Is it possible if I write name of the image directly like "tree.jpg" or I have to write full source like..."D:\pictures\tree.jpg" (D is a name of the folder in which picture's folder exist)
7th May 2017, 3:57 PM
Ashiesh Watts
Ashiesh Watts - avatar
+ 1
@Serena Yvonne Oohk...Thank u Serena...:)
7th May 2017, 4:09 PM
Ashiesh Watts
Ashiesh Watts - avatar