Import Python codes inside HTML file
Question: As mentioned
[here](http://karrigell.sourceforge.net/en/pythoninsidehtml.html), I can
import Python codes inside .html files using `<%` and `%>` tags. Just to try
it, I wrote the below code in notepad and save it as a file named test.html :

    
    
    <html>
    <title>
    </title>
    <body>
    <%print ("Hello")%>
    </body>
    

Once I do a double click on the test.html, Chrome opens with the below line on
the top :

    
    
    <%print ("Heloo")%>
    

What I must I do to have 'Hello' in output?

Note: **"print"** is an example, What kind of ways is there to import and run
python codes in html files?


Answer: That page is related to Karrigell a Python web framework, you can only have
Python and HTML files (Web pages) if you use a Python web framework like
[web.py](http://webpy.org/), [Pylons](http://www.pylonsproject.org/),
[Django](https://www.djangoproject.com), and
[others](https://wiki.python.org/moin/WebFrameworks).

Browsers can only execute JavaScript code, other programming languages have to
use special components to be executed by browsers.

