Can HTML contain two HEAD tags

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

    As per W3C standards, No! you can not have it.

    In your case, you are using JSP as a server side scripting. The problem can be solved by using CONSTANTS for stylesheet/scripts/other html elements.

    You just need to add condition in your "main.jsp" file as per the page requirement.

提交回复
热议问题