New course! Every coder should learn Generative AI!
Try a free lesson0
Why we can see a image by using only html tags and attributes if we type border="2" and height="30px" the output is white image
11 Answers
+ 2
Mukesh.G There is another way to display image using css background or background-image property.
And as you say there "border="2" and height="30px"" the background color is white not the image because the default background color is white.
+ 2
Can show me code attempt?
+ 2
Can you give one example for filepath to display img
+ 1
But why??we can,t see the image what about src attribute???
+ 1
The src attribute specifies the URL or file path of the image
https://code.sololearn.com/Wm6Ab3dpU0mj/?ref=app
+ 1
How it could happen for me it,s not appearing
+ 1
MATIYAS:you,re so.great .thankyou now it work before this I thik src attribute was a filename but now matiyas told me it is img url and filepath .thankyou!
+ 1
Mukesh.G You can't use file path at sololearn but if you have pc it works there even if in android code editors that can support file path it works.
0
How it should be filepath
0
Can give one example in a text
0
Mukesh.G Sololearn doesn't support your storage file path but you can upload your image on Dropbox or Google Drive and copy the link of the image and then past on your code.