Both methods work. However, if the code is mostly static having a separate HTML file with PHP added to it is often better and easier to maintain. If you are doing a lot of things, like making database calls, etc., starting with PHP and adding HTML is often preferred.