Your question is vague and might be interpreted in different ways depending on how much importance that you put on 'properly'. You can easily mix php and html in a PHP module. Just end the PHP section with a ?> and start your html. You can go back and forth as many times as needed in a module. You can also use PHP to echo html statements. The purists don't like to see things mixed together so they would probably prefer the first approach. You can also put your html in separate modules and include them at the appropriate place(e) in your PHP module.