Forums

Syntax Error trying to run Declarative Paradigm language code

I'm trying to run this code, <!DOCTYPE html> <html> <body>

<h1>Welcoming to Coding</h1> <p>Hello World!</p> </body> </html>

But I keep getting this error.

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/bin/pythonanywhere_runner.py", line 26, in _pa_run code = compile(f.read(), filename.encode("utf8"), "exec") File "/home/NoThInGnEsS/miscellaneous.py", line 1 <!DOCTYPE html> ^ SyntaxError: invalid syntax

I think I might need to download a package, I just don't know which one.

Reply A.S.A.P, Thanks

It's not a code that you could run with python, it's a static html page. If you want to deploy it on PythonAnywhere follow https://help.pythonanywhere.com/pages/hosting-a-static-site/