I have researched some answers that talk about php, javascript, iframes etc. but I have tried a couple and none of them work. I am new to HTML coding.. and coding in general!
<link rel="menu" href="menu.html"> does nothing
<!--#include virtual="/menu.html" --> does nothing (presumably because its a comment?)
<iframe src="page.html"></iframe>
or object... both place the menu in a silly little scroll box.
I want to run my menu on my page as if it were a function in C. Where I can just include it, and it be there, or just link it.
Thanks for the help! Ryan
webpage file: biology.html menu file: menu.html
<div class="container">
<a href="index.html"><img src="homeicon.jpg" width="50" alt="Home"></a>
<div class="redhover">
<div class="dropdown">
<button class="dropbtn">GCSEs</button>
<div class="dropdown-content">
<a href="chemistry.html">Chemistry</a>
<a href="biology.html">Biology</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">A-Levels</button>
<div class="dropdown-content">
<a href="chemistry.html">Chemistry</a>
<a href="biology.html">Biology</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">University</button>
<div class="dropdown-content">
<a href="chemistry.html">Telecommunications</a>
<a href="biology.html">Electronic Engineering</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">More</button>
<div class="dropdown-content">
<a href="biology.html">About me</a>
<a href="https://www.youtube.com/channel/">Youtube</a>
</div>
</div>
</div>
</div>