Learn first css and html and write your code in Notepad ++
If not try to find a programs: FrontPage, Dreamweaver but you must to know html knowledge.
"First learn after create"
If you know to write code, I to use Notepad ++. - it is free
You need a softer to write your code
Yes it will works only to change extension from html to php
and write php code in <?php echo 'hello';?>
<?php echo 'hello';?> This will works