Bookstore.html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
ul {
list-style-type: none;
padding: 20px;
overflow: hidden;
background-color: black;
width:1230px;
position: absolute;
bottom: 0;
margin: 0;
left: 0;
}
li a {
display: block;
color: white;
text-align: center;
padding: 10px;
margin:20px;
text-decoration: none;
}
.fa-facebook:hover {
background: #3B5998;
color: white;
}
.fa-twitter:hover {
background: #55ACEE;
color: white;
}
.fa-youtube:hover {
background: #bb0000;
color: white;
}
.fa-instagram:hover {
background: #125688;
color: white;
}
.fa:hover {
opacity: 0.9;
}
</style>
<ul>
<li style="float:right;"><a href="https://www.facebook.com/" class="fa fa-facebook"></a></li>
<li style="float:right;"><a href="https://twitter.com/" class="fa fa-twitter"></a></li>
<li style="float:right;"><a href="https://www.instagram.com/?hl=en" class="fa fa-instagram"></a></li>
<li style="float:right;"><a href="https://www.youtube.com" class="fa fa-youtube"></a></li>
<li style="float:left;"><a>Library2021 ©</a></li>
WelcomePage.html
<style>
ul {
list-style-type: none;
padding: 20px;
overflow: hidden;
background-color: black;
position: relative;
top: 0;
margin: 0;
left: 0;
z-index: 1;
}
li{
float:left
}
li a {
display:block;
color: white;
text-align: center;
padding: 10px;
margin:20px;
text-decoration: none;
}
li a:hover {
padding: 10px;
background-color: white;
color:black;
}
</style>
<ul>
<li><a href="Home.jsp">HOME</a></li>
<li><a href="AboutUs.jsp">ABOUT US</a></li>
<li><a href="ContactUs.jsp">CONTACT US</a></li>
<li><a href="Store.jsp">STORE</a></li>
<li><a href="SignUp.jsp" id="l1">SIGN UP</a></li>
<li><a href="LogIn.jsp" style="float:right;margin:20px 0 0 500px">LOG IN</a></li>
</ul>
Home.jsp
<html>
<head>
<title>Online Bookshop</title>
<style>
</style>
</head>
<jsp:include page="header.html"/>
<body>
Welcome to the Online Bookshop!
</body>
<jsp:include page="footer.html"/>
</html>
I have been attempting to insert the header and footer files into the Home page, but the result is displaying the footer file throughout the page without the header file being displayed.