jQuery is not changing the function of my HTML

jQuery is not changing the function of my HTML

Hi there,

I have made a web page about the default HTML tags as part of some HTML tutorials that I am working on.

My page should, when you click next, reveal the next part of text, and when you get to the end of the tutorial, this next link should hide and the one that takes you to the next tutorial show. Attached is my jQuery and HTML code.

Thanks


The Code:

  1. <HTML>
    <HEAD>
    <TITLE>Coding Kids HTML Tutorial</TITLE>
    <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <script>
    $(function(){
             $("#next").show();
             $("#text1").fadeIn("slow");
             $("#text2").hide();
  2.          $("#text3").hide();
  3.          $("#text4").hide();
  4.          $("#text5").hide();
  5.          $("#text6").hide();
  6.          $("#text7").hide();
  7.          $("#text8").hide();
  8.          $("#text9").hide();
  9.          $("#text10").hide();
  10.          $("#next").click(function(){
                 $("#next").show()
    ;
                 $("#text1").show();
                 $("#text2").fadeIn("slow");
  11.              $("#text3").hide();
  12.              $("#text4").hide();
  13.              $("#text5").hide();
  14.              $("#text6").hide();
  15.              $("#text7").hide();
  16.              $("#text8").hide();
  17.              $("#text9").hide();
  18.              $("#text10").hide();

  19.              $("#next").click(function(){
                     $("#next").show();
                     $("#text1").show();
                     $("#text2").show();
  20.                  $("#text3").fadeIn("slow");
  21.                  $("#text4").hide();
  22.                  $("#text5").hide();
  23.                  $("#text6").hide();
  24.                  $("#text7").hide();
  25.                  $("#text8").hide();
  26.                  $("#text9").hide();
  27.                  $("#text10").hide();

  28.                  $("#next").click(function(){
                         $("#next").show();
                         $("#text1").show();
                         $("#text2").show();
  29.                      $("#text3").show();
  30.                      $("#text4").fadeIn("slow");
  31.                      $("#text5").hide();
  32.                      $("#text6").hide();
  33.                      $("#text7").hide();
  34.                      $("#text8").hide();
  35.                      $("#text9").hide();
  36.                      $("#text10").hide();

  37.                      $("#next").click(function(){
                             $("#next").show();
  38.                          $("#text1").show();
                             $("#text2").show();
  39.                          $("#text3").show();
  40.                          $("#text4").(show);
  41.                          $("#text5").fadeIn("slow");
  42.                          $("#text6").hide();
  43.                          $("#text7").hide();
  44.                          $("#text8").hide();
  45.                          $("#text9").hide();
  46.                          $("#text10").hide();

  47.                          $("#next").click(function(){
                                 $("#next").show();
                                 $("#text1").show();
                                 $("#text2").show();
  48.                              $("#text3").show();
  49.                              $("#text4").show();
  50.                              $("#text5").show();
  51.                              $("#text6").fadeIn("slow");
  52.                              $("#text7").hide();
  53.                              $("#text8").hide();
  54.                              $("#text9").hide();
  55.                              $("#text10").hide();

  56.                              $("#next").click(function(){
                                     $("#next").show()
    ;
                                     $("#text1").show();
                                     $("#text2").show();
  57.                                  $("#text3").show();
  58.                                  $("#text4").show();
  59.                                  $("#text5").show();
  60.                                  $("#text6").show();
  61.                                  $("#text7").fadeIn("slow");
  62.                                  $("#text8").hide();
  63.                                  $("#text9").hide();
  64.                                  $("#text10").hide();

  65.                                  $("#next").click(function(){
                                         $("#next").show();
  66.                                      $("#text1").show();
                                         $("#text2").show();
  67.                                      $("#text3").show();
  68.                                      $("#text4").show();
  69.                                      $("#text5").show();
  70.                                      $("#text6").show();
  71.                                      $("#text7").show();
  72.                                      $("#text8").fadeIn("slow");
  73.                                      $("#text9").hide();
  74.                                      $("#text10").hide();

  75.                                      $("#next").click(function(){
                                             $("#next").hide();
                                             $("#text1").show();
                                             $("#text2").show();
  76.                                          $("#text3").show();
  77.                                          $("#text4").show();
  78.                                          $("#text5").show();
  79.                                          $("#text6").show();
  80.                                          $("#text7").show();
  81.                                          $("#text8").show();
  82.                                          $("#text9").fadeIn("slow");
  83.                                          $("#text10").show();
                                         });
  84.                                  });
  85.                              });
  86.                          });
  87.                      });
  88.                  });
  89.              });
  90.          });
    });
    </script>
    <style>
    body {
         margin-top: 40px;
         margin-bottom: 40px;
         margin-right: 10px;
         margin-left: 80px;
    }
    </style>
    </HEAD>
    <BODY>
    <font face="Raleway" size="5">
    <p id="text1">Every web page coded in HTML must always have 4 pairs of tags, always in the same order.</p>
    <ul>
    <li id="text2"><tt>&lt;html&gt;</tt> - This tag goes at the beginning. it tells the <a href="#" title="The browser is the program that can open the internet.">browser</a> that the coding is in HTML.
    <li id="text3"><tt>&lt;head&gt;</tt> - This tag tells the browser that the next piece of coding is describing the page.
    <li id="text4"><tt>&lt;title&gt;</tt> - This tag tells the browser what title to put in the <a href="#" title="A tab is the box at the top of your browser that says what the title of the page is. The tab says 'Coding Kids HTML Tutorial' on this page.">tab</a> on your browser.
    <li id="text5"><tt>&lt;/title&gt;</tt> - This tag tells the browser to stop the title tag.
    <li id="text6"><tt>&lt;/head&gt;</tt> - This tag tells the browser to end the head section.
    <li id="text7"><tt>&lt;body&gt;</tt> - This tag starts the body section of the web page. Coding after this tells the browser how the page will look.
    <li id="text8"><tt>&lt;/body&gt;</tt> - This tag tells the browser to end the body section.
    <li id="text9"><tt>&lt;/html&gt;</tt> - This tag tells the browser that it is the end of the page.
    </ul>
    <br>
    <a id="text10" href="Lesson7.html">Next</a><br>
    <p id="next"><a href="#">Next</a></p>
    </font>
    </BODY>
    </HTML>