Can HTML contain two HEAD tags

后端 未结 6 1964
盖世英雄少女心
盖世英雄少女心 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:13

    As per W3C standards, you can not have two HEAD tags.

    Concerning your issue, you can call header.jsp file without HEAD tag or may be you can rename to scripts.jsp or constants.jsp

    For example:

    Header.jsp

    
    
    
    
    

    Main.jsp

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

提交回复
热议问题