I'm making a larger website using HTML, css, JSP and Java-servlet.
I've made a menu using < nav>
< ul>
< li>
(navigation). When i hover, sub-menus drop-down. It looks like this:
I want to reuse this menu on all my pages. It will change a lot so I need Single Source of Truth - No duplication of code. I've been looking in to php/js but haven't been able to get it to work.
I imaging that it will work like this:
Notes:
use the include feature given by jsp:
<%@ include file="menu.html" %>