G
G
ganbatte2018-09-23 13:56:39
Python
ganbatte, 2018-09-23 13:56:39

Made a website with python, and how do I open a local CGI server image from the website?

I made a website according to this manual manual .
Here is the code and it works. The link to the image is working, how can I make the image load? I want to make a button, and this image was loaded by this button. Or the image loaded immediately after opening the .py from the site.

print("Content-type: text/html")
print()
print("<h1>Hello world!</h1>")
print('<a href="/image/image.jpg">картинка</a>')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Varlamov, 2018-09-26
@bes_internal

<img src=/image/image.jpg>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question