PHP HTML lesson

refactored with functions