I am trying to enhance the visual appearance of the currently opening page using custom CSS styles. Below is a snippet of my HTML code:
<ul class="nav" id="nav">
<li id="home">
<a href="home.html" data-id="home" target="ifrm">Home</a>
<ul>
<li><a href="item1.html" target="ifrm">item1</a></li>
<li><a href="item2.html" target="ifrm">item2</a></li>
<li><a href="item3.html" target="ifrm">item3</a></li>
</ul>
</li>
<li id="skill"><a href="skill.html" data-id="skill" target="ifrm">Skill</a></li>
<li id="research"><a href="research.html" data-id="research" target="ifrm">Research</a></li>
<li id="link"><a href="link.html" data-id="link" target="ifrm">Link</a></li>
</ul>
<iframe name="ifrm"></iframe>
I aim to modify the font and background color of the menu list based on which page is being loaded in the iframe.