Accordion without codecademy


I'm trying to use the accordion on my own. It works in the exercise, but it just shows as regular html elements when I do it on my own. What's wrong?

<!DOCTYPE html>
  <meta charset="utf-8"/>
  <link rel="stylesheet" href="" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

  <link href=',400,700' rel='stylesheet' type='text/css'>

  <link rel="stylesheet" type="text/css" href="styles.css">

<script type='text/javascript' src='script.js'></script>

<script src=""></script>

        <script src=""></script>

<div id="menu">
            <h3><a href="#">Heading for first sentence</a></h3>
        <h3><a href="#">Heading for second sentence</a></h3>            
        <h3><a href="#">Heading for third sentence</a></h3>
        <p>Salads and Sides</p>
		<p> Desserts </p>
		<p> Diwali Snacks </p>




I'd try putting my link to script.js after the jQuery files.

<script src=""></script>
<script src=""></script>
<script src="script.js"></script>

Also make sure that the path to script.js is correct.
Last, you forgot the closing </body> before </html>

Let us know if that works?


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