As someone new to the world of JavaScript and CSS, I have been experimenting with adding a menu from an example on W3Schools. The code is functioning correctly, but now I'm looking to take it a step further by creating a multi-level menu with 2 levels. I've attempted this on my own without success. I would greatly appreciate any advice or suggestions from the experts here. Thank you in advance.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
}
.navbar {
overflow: hidden;
background-color: #333;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.subnav {
...