I have a website in which the html code is as below:
<div id="navmenu"><a id="home" href="http://www.abc.com" ><span>HOME<span></a>
<a id="about" href="http://www.abc.com/about-us/"><span>ABOUT US</span></a>
<ul class="about-child">
<li><a href="#">Hard Drives1</a></li>
<li><a href="#">Hard Drives<2/a></li>
</ul>
I want to call these ul and li tags to create CSS but I dont know how to style li and ul using CSS because I am using separate CSS tags for Home and About.
If you need to select all the
<li>tags, use this:If you need to select all the
<li>tags inside the<ul class="about-child">, use this:If you need to select all the
<li>tags inside any<ul>tag, use this:And to include the stylesheet, you can either include it via
<link>:Or by embedding the stylesheet in your document: