Multiple <head> and <body> tag

前端 未结 3 1614
甜味超标
甜味超标 2021-01-20 19:57

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

3条回答
  •  借酒劲吻你
    2021-01-20 20:28

    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

提交回复
热议问题