how to insert an image in a QFile generated file using HTML
-
@ManiRon "i have to place my image at place where i am saving my html file" - yes!
How can web browser know where the picture is if the only information you give it is the file name without path:<img src="Logo1.png" alt="Test" >
?! So, where should web browser look for this picture?
"But if i give the path its not accepting at all" - how do you give it the path? Please show...wrote on 22 Feb 2019, 06:07 last edited byThis post is deleted! -
@ManiRon "i have to place my image at place where i am saving my html file" - yes!
How can web browser know where the picture is if the only information you give it is the file name without path:<img src="Logo1.png" alt="Test" >
?! So, where should web browser look for this picture?
"But if i give the path its not accepting at all" - how do you give it the path? Please show... -
@ManiRon Why don't you put the image into same directory as your HTML document or into a subdirectory there? I don't see the point to spread HTML and images over completely different locations as they belong together to build a HTML page.
See https://www.w3schools.com/html/html_filepaths.asp for possibilities HTML provides.
The syntax you're using is invalid. -
@ManiRon Why don't you put the image into same directory as your HTML document or into a subdirectory there? I don't see the point to spread HTML and images over completely different locations as they belong together to build a HTML page.
See https://www.w3schools.com/html/html_filepaths.asp for possibilities HTML provides.
The syntax you're using is invalid.
21/24