hi,
i am new in python cgi.I try to code cgi with python.i can not linked with css file with python script.The css file name is style.css.
my code is here :
here i tell you that css file locate at the same directory where python script located.
css file contain :
i am new in python cgi.I try to code cgi with python.i can not linked with css file with python script.The css file name is style.css.
my code is here :
#!/usr/bin/python3.5 print("Content-type: text/html\r\n\r\n") print("<!doctype html>") print("<html>") print("<head>") print("<title>") print("Cgi-python") print("</title>") print("<link rel='stylesheet' type='text/css' href='/style.css'>") print("</head>") print("<body>") print("<h1>My name is zzzzzz</h1>") print("</body>") print("</html>")this is my python cgi script...
here i tell you that css file locate at the same directory where python script located.
css file contain :
*{ padding: 0px; margin: 0px; font-size: 20px; } h1{ color: blue; }what is the problem with my script.Why i can