HTML code: When selecting from the drop down menu, I want aIFrame to be able to display a seperate page for eachselection.
<!DOCTYPE html>
<html>
<head>
<title>Courses</title>
<style>
.navbar {
overflow: hidden;
background-color: purple;
font-family: Arial, Helvetica, sans-serif;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover,
.dropdown:hover .dropbtn {
background-color: purple;
}
.dropdown-content {
display: none;
position: absolute;
background-color: purple;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a {
float: left;
display: block;
color: white;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
border-style: groove;
border-width: 7px;
border-color: white;
}
.dropdown-content a:hover {
background-color: purple;
}
.dropdown:hover .dropdown-content {
display: block;
}
body {
background-color: white;
}
</style>
</head>
<body>
<div class=”navbar”>
<a href=”index.html”>Home page</a>
<div class=”dropdown”>
<button class=”dropbtn”>Pages<i class=”fafa-caret-down”></i></button>
<div class=”dropdown-content”>
<a href=”food.html”>Food</a>
<a href=”wild life.html”>Wild
PayPal Gateway not configured
PayPal Gateway not configured