I am trying to create a very simple web application, basically to understand the best practices of coding in HTML5, CSS and JavaScript.
My application has 3-4 pages
php is rendering html and if you have in both files header of course it will be printed twice
you should separate in includes but don't write in both files tag
example
taf
include ($_SERVER[DOCUMENT_ROOT] . '/page/common/header.php);
?>
BODY
include will bring content from head.php
and foot.php
and will put in index.php
file