Can't get my drop down bullet points to disappear

I am trying to include these codes into my other project and i thought that all of my bullet points should be removed but the drop down boxes’ bullet points are still there… Here are my codes for my html and css respectively

html codes


<!DOCTYPE>
<html>
<head>
   <link rel="stylesheet" type ="text/css" href="style.css">
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">


   <meta charset="UTF-8">
   <title>Copyright</title>
   <link rel="stylesheet" type="text/css" href="copyright.css"/>
   <link href="https://fonts.googleapis.com/css?family=Open+Sans:400, 600" rel="stylesheet">
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">
<title>Pianocourse101</title>
</head>
<body>
<header>


   <ul class="nav">

      <div class="logo">
         <a href="index.html">Pianocourse101</a>
      </div>

     
      
      <li><a href="http://pianocourse101.ihostfull.com/pianocourse101/register.php">Register</li></a>
      <li name="login"><a href="http://localhost/pianocourse101/login.php">Login</li></a>
      
      <li><a href="http://localhost/pianocourse101/primerlevel.php">Primer Level<i class="fas fa-lock-open"></i></li></a> 
      <li><a href="http://localhost/pianocourse101/level1.php">Level 1<i class="fas fa-lock"></i></li></a> 
      <li><a href="http://localhost/pianocourse101/level2.php">Level 2<i class="fas fa-lock"></i></li></a> 
      <li><a href="http://localhost/pianocourse101/level3.php">Level 3<i class="fas fa-lock"></i></li></a> 
      <li><a href="http://localhost/pianocourse101/downloadsection.php">Download<i class="fas fa-download"></i></li></a>
      <li><a href="http://localhost/pianocourse101/aboutme.php">About Me
         <ul>
            <li>My History</li>
            <li> Our Team</li>

         </ul>
      </li></a> 
      <li><a href="http://localhost/pianocourse101/contact.php">Contact Us<i class="fas fa-envelope-square"></i>
        <ul>
           <li>Open Ticket</li>
           
        </ul>
      </li></a> 
      <li><a href="http://localhost/pianocourse101/contact.php">Donate<i class="fab fa-paypal"></i></li></a> 
   </ul>

   <div class="banner">
      <img class="banner-image" src="images/Mervin.gif">
   </div>

   <br></br>
   <br></br>
   <div class="message">
      <p> At Pianocourse101, you will learn the following</p>
         <ul>
            <li>Basic hand positions</li>
            <li>Posture</li>
            <li>Rhythm</li>
            <li>Finger numbers</li>
            <li>Letter names</li>
         </ul>
   </div>

   <div class="key">
      <img class="keys" src="images/keys.jpg">
   </div>


   <div class="heading">Services</div>
      <div align="center" class="services">
         <div class="service1">  
            <h1>Download Section: Primer Level</h1>
            <a href=""><img class="image1" src="images/treble.png"></a>
            <p>Access full contents for just <strong>$50!</strong> Learn the basic hand positions, finger numbers and letter names!</p>
         </div>
       

       <div class="service1">  
            <h1>Download Section: Level 1</h1>
            <a href=""><img class="image4" src="images/bass.jpg"></a>
            <p>Access full contents for just <strong>$100!</strong> Learn some advanced pieces, slurs and staccatos!</p>
       
          </div>


         <div class="service1">  
            <h1>Download Section: Level 2</h1>
            <a href=""><img class="image" src="images/crotchet.png"></a>
            <p>Access full contents for just <strong>$150!</strong> Progress and play some more advanced pieces hands together!</p>
         </div>

          <div class="service1">  
            <h1>Download Section: Level 3</h1>
            <a href=""><img class="image2" src="images/bass.jpg"></a>
            <p>Access full contents for just <strong>200!</strong> Feeling more confident and need a challenge? Level 3 will provide you with more challenging pieces!</p>
         </div>
       </div>

   <section>
     
   </section>
   
   
<div class="block">
      
   </div>

   <footer>
      <div class="copyright clearfix">
         <div class="container clearfix">
         <div class="text float left">
            copyright mervin lee 2018
         </div>
         <ul class="links float right">
            <li><a href=""><i class="fab fa-facebook-square"></i></a></li>
            <li><a href=""><i class="fab fa-twitter-square"></i></a></li>
            <li><a href=""><i class="fab fa-instagram"></i></a></li>
            <li><a href=""><i class="fab fa-youtube-square"></i></a></li>
            <li><a href=""><i class="far fa-copyright"></i></a></li>
         </ul>
   </footer>





   
</header>
</body>
</html>

I am not sure if I did close the ul class=“nav” properly…

body {
	margin: 0;
	padding: 0;
	font-family: 'Arial', 'serif';
}



.nav {
   background-color: #ffffff;
   color: #000000;
   list-style: none;
   
   padding: 20px 0 0 0;
}

.nav > li {
	display: inline-block;
	list-style: none;
	padding-right: 50px;
	font-size: 12px;
}

.nav > li > a {
	text-decoration: none;
	color: #000000;

}




.nav > li > a:hover {
	color: #c1c1c1;
}



.logo {
	color: black;
	float: left;
	padding-left: 25px;
	font-size: 12px;
	font-weight: bold;
}

.logo > a {
   text-decoration: none;
   color:black;
}

.banner {
	width: 100%;
	display:block;
}

.banner > .banner-image {
	width: 100%;
	display: block;
	height: 700;
}

.service1 {
	width: 298px;
	border: 1px solid #c1c1c1;
	margin: 20px 10px;
	padding: 0 5px;
	float: left;
}

.service1 > p {
	font-size: 14px;
	color: #636363;
	max-width: 200px;
	text-align: justify;

}

.services {
	width: 1500px;
	margin:0 auto;
}

h1 {
	font-size: 16px;
	font-weight: bold;
	background-color: #c1c1c1;
    color: #ffffff;
    padding: 10px 0;
    margin: 0 -6px;
}

.image {
	max-width: 135px;
	margin: 15px 0 0 0;
}

.heading {
	text-align:center;
	font-size: 25px;
	color: #000000;
	margin:100px 0 50px 0;
	font-weight: bold;
}

.service1 > image1 {
	max-width: 120;
	margin: 15px 0 0 0;
}

.service1 > image4 {
	max-width: 120;
	margin: 15px 0 50px 0;
}


.image:hover {
	opacity: 0.2;
	max-width: 200px;
	margin-top:15px;
}

.image1:hover {
	opacity: 0.2;
	max-width: 200px;
	margin-top:15px;
}

.message {
	text-align: center;
	font-size: 30px;
	font-weight: bold;
}


.message ul {
    text-align: center;
    list-style-position: inside;
}

.key {
	text-align: center;

}




I’m not sure if you’ve been directed to the W3C Validator before now, but you should learn to regard it as your best friend and visit frequently. It will show you where any errors lie, such as the incorrect doctype (should be <!doctype html>) and the incorrectly nested links.

<li><a href="http://pianocourse101.ihostfull.com/pianocourse101/register.php">Register</li></a>

You need to close the inner element (the <a>) before you close the outer element (the <li>).

Use the Validator to check and correct your code, and post again if your problem remains - or if you need help with any of the Validators messages.

1 Like

Does the order matter? I thought it shouldn’t have mattered much…I tried it but it still doesn’t work

The order of the HTML tags? Yes, it does. Think of nesting tags like nesting Russian dolls; one has to be inside the other; you can’t have something half in and half out.

OK - post your updated HTML so we can see what you have.

Thanks… This is my problem so far… Not sure if you can see the picture… oh yes… you can…

my codes are above… do you still want me to re paste it?

Hi there piano0011,

add this CSS…

.nav ul, footer ul {
   list-style: none;
 }

Now do as @TechnoBear has suggested and correct
all the HTML/CSS errors with the aid of the validator.

When writing code you really need to validate at each
step of the way, it will save you an immense amount of
time in the long run. :biggrin:

coothead

I was asking you to post your updated HTML - after you’ve run it through the validator and corrected the errors. Validating code is always the first step in trouble-shooting. If the code is incorrect, you shouldn’t be surprised if it doesn’t work as expected.

I am still using localhost, do i enter the url or just the whole code?

You can either paste the code, or upload your local file for checking. (The options are under the dropdown menu at “Check by”.)

This validator is great! It came up with a few errors but can you guys tell me if it is important to fix all the errors? I just fixed the bottom errors because I forgot to close my and it is now working…

1 Like

Thanks. for the code… the only problem now is that the submenu is not lined up properly… I guess I should use margin… why did you use the footer?

As a general rule, you should fix all the errors. If you fully understand an error message, and are sure that it will not adversely affect the behaviour of the site, you can ignore it, but personally I would try to fix all errors.

As far as alternative text goes, if the image is purely decorative, you should add alt="" (or better still, insert the images as background images via CSS). There’s a good article here: https://webaim.org/techniques/alttext/.

Post your updated code and we can take look.

This is my updated html code

<!DOCTYPE>
<html>
<head>
   <link rel="stylesheet" type ="text/css" href="style.css">
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">


   <meta charset="UTF-8">
   <title>Copyright</title>
   <link rel="stylesheet" type="text/css" href="copyright.css"/>
   <link href="https://fonts.googleapis.com/css?family=Open+Sans:400, 600" rel="stylesheet">
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">
<title>Pianocourse101</title>
</head>
<body>
<header>


   <ul class="nav">

      <div class="logo">
         <a href="index.html">Pianocourse101</a>
      </div>

     
      
      <li><a href="http://pianocourse101.ihostfull.com/pianocourse101/register.php">Register</a></li>
      <li name="login"><a href="http://localhost/pianocourse101/login.php">Login</a></li>
      
      <li><a href="http://localhost/pianocourse101/primerlevel.php">Primer Level<i class="fas fa-lock-open"></i></a></li>
      <li><a href="http://localhost/pianocourse101/level1.php">Level 1<i class="fas fa-lock"></i></a></li>
      <li><a href="http://localhost/pianocourse101/level2.php">Level 2<i class="fas fa-lock"></i></a></li>
      <li><a href="http://localhost/pianocourse101/level3.php">Level 3<i class="fas fa-lock"></i></a></li>
      <li><a href="http://localhost/pianocourse101/downloadsection.php">Download<i class="fas fa-download"></i></a></li>
      <li><a href="http://localhost/pianocourse101/aboutme.php">About Me
         <ul>
      <li>My History</li>
      <li> Our Team</li>

         </ul>
      </a></li>
      <li><a href="http://localhost/pianocourse101/contact.php">Contact Us<i class="fas fa-envelope-square"></i>
        <ul>
           <li>Open Ticket</li>

        </ul>
      </a></li>
      <li><a href="http://localhost/pianocourse101/contact.php">Donate<i class="fab fa-paypal"></i></li></a> 
   </ul>

   <div class="banner">
      <img class="banner-image" src="images/Mervin.gif">
   </div>

   <br></br>
   <br></br>
   <div class="message">
      <p> At Pianocourse101, you will learn the following</p>
         <ul>
            <li>Basic hand positions</li>
            <li>Posture</li>
            <li>Rhythm</li>
            <li>Finger numbers</li>
            <li>Letter names</li>
         </ul>
   </div>

   <div class="key">
      <img class="keys" src="images/keys.jpg">
   </div>


   <div class="heading">Services</div>
      <div align="center" class="services">
         <div class="service1">  
            <h1>Download Section: Primer Level</h1>
            <a href=""><img class="image1" src="images/treble.png"></a>
            <p>Access full contents for just <strong>$50!</strong> Learn the basic hand positions, finger numbers and letter names!</p>
         </div>
       

       <div class="service1">  
            <h1>Download Section: Level 1</h1>
            <a href=""><img class="image4" src="images/bass.jpg"></a>
            <p>Access full contents for just <strong>$100!</strong> Learn some advanced pieces, slurs and staccatos!</p>
       
          </div>


         <div class="service1">  
            <h1>Download Section: Level 2</h1>
            <a href=""><img class="image" src="images/crotchet.png"></a>
            <p>Access full contents for just <strong>$150!</strong> Progress and play some more advanced pieces hands together!</p>
         </div>

          <div class="service1">  
            <h1>Download Section: Level 3</h1>
            <a href=""><img class="image2" src="images/bass.jpg"></a>
            <p>Access full contents for just <strong>200!</strong> Feeling more confident and need a challenge? Level 3 will provide you with more challenging pieces!</p>
         </div>
       </div>

   <section>
     
   </section>
   
   
<div class="block">
      
   </div>

   <footer>
      <div class="copyright clearfix">
         <div class="container clearfix">
         <div class="text float left">
            copyright mervin lee 2018
         </div>
         <ul class="links float right">
            <li><a href=""><i class="fab fa-facebook-square"></i></a></li>
            <li><a href=""><i class="fab fa-twitter-square"></i></a></li>
            <li><a href=""><i class="fab fa-instagram"></i></a></li>
            <li><a href=""><i class="fab fa-youtube-square"></i></a></li>
            <li><a href=""><i class="far fa-copyright"></i></a></li>
         </ul>
      </div>
     </div>

   </footer>





   
</header>
</body>
</html>

and my css


body {
	margin: 0;
	padding: 0;
	font-family: 'Arial', 'serif';
}



.nav {
   background-color: #ffffff;
   color: #000000;
   list-style: none;
    
   padding: 20px 0 0 0;
}

.nav > li {
	display: inline-block;
	list-style: none;
	padding-right: 50px;
	font-size: 12px;
}

.nav > li > a {
	text-decoration: none;
	color: #000000;

}




.nav > li > a:hover {
	color: #c1c1c1;
}



.logo {
	color: black;
	float: left;
	padding-left: 25px;
	font-size: 12px;
	font-weight: bold;
}

.logo > a {
   text-decoration: none;
   color:black;
}

.banner {
	width: 100%;
	display:block;
}

.banner > .banner-image {
	width: 100%;
	display: block;
	height: 700;
}

.service1 {
	width: 298px;
	border: 1px solid #c1c1c1;
	margin: 20px 10px;
	padding: 0 5px;
	float: left;
}

.service1 > p {
	font-size: 14px;
	color: #636363;
	max-width: 200px;
	text-align: justify;

}

.services {
	width: 1500px;
	margin:0 auto;
}

h1 {
	font-size: 16px;
	font-weight: bold;
	background-color: #c1c1c1;
    color: #ffffff;
    padding: 10px 0;
    margin: 0 -6px;
}

.image {
	max-width: 135px;
	margin: 15px 0 0 0;
}

.heading {
	text-align:center;
	font-size: 25px;
	color: #000000;
	margin:100px 0 50px 0;
	font-weight: bold;
}

.service1 > image1 {
	max-width: 120;
	margin: 15px 0 0 0;
}

.service1 > image4 {
	max-width: 120;
	margin: 15px 0 50px 0;
}


.image:hover {
	opacity: 0.2;
	max-width: 200px;
	margin-top:15px;
}

.image1:hover {
	opacity: 0.2;
	max-width: 200px;
	margin-top:15px;
}

.message {
	text-align: center;
	font-size: 30px;
	font-weight: bold;
}


.message ul {
    text-align: center;
    list-style-position: inside;
}

.key {
	text-align: center;

}

.nav ul, footer ul {
   list-style: none;
 }



OK - looking at that you still have a few important errors you need to fix.

The doctype I mentioned above.

You can’t have two <title> elements; one needs to be removed.

You can’t have a <div> as a child of (i.e. inside) a <ul>.

Some of your end </a> tags are still incorrectly nested around your submenus.

You can’t nest a <footer> element inside a <header> element. You need to move the closing </header> tag to a more appropriate position.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.