Sunday, January 3, 2016

Lab 12

     For my Lab#12 I had to make an accordion based on my favorite subject and I had to have five questions. For my lab I chose Web Design as my favorite subject because there is so much you can do with it and can be used in many different ways. For this accordion we used jQuery and CSS to make it functional. When the user would hover over one of the questions, it would slide down an answer. This would happen to all the questions but only when you hover over a question. 
     I used functions like mouseenter, slideUp, and slideDown in order for the accordion to do so. We made a separate JavaScript and CSS file for our lab and then linked it to the HTML file.  This lab will be helpful in my future because I now know how to make an accordion and can implement it in future labs and projects. Im able to change the colors of it and will now be able to display other information. With this lab I now have more experience and practice with jQuery and with more practice it will become easier for me to complete future labs and projects.

No comments:

Post a Comment