It would be really nice if you HTML code was in a template file.
HTML, CSS, JS & PHP should be split in appropriate files.