I found the problem.
You have created a HTML file and using php inside that which is totally wrong .
To get php code working you need to create a php file and write php code
create a php file by saving a file as filename.php and copy those contents there, which will work fine
Also make sure that you have php installed on you system.If not download and install wamp server