Can HTML contain two HEAD tags

后端 未结 6 1945
盖世英雄少女心
盖世英雄少女心 2021-01-31 18:57

In my web application I got Header.jsp file which contains default header contents. Im including it in all other pages using jsp:include tag inside body tag of each individual p

6条回答
  •  后悔当初
    2021-01-31 19:12

    Here is an idea you could try

    In your main head do this

     
    
    
       
       
       
       
    

    Notice I have left off the end head tag. Then in all your files you have to either close the head tag, or add extra header stuff and then close your head tag eg

          Main page
          
       
       
          
          .....
          other HTML contents specific to main page
          .....
       
    
    

    As for your page title you can run a little php to determine what page you are on

提交回复
热议问题