For my Lab#16 we had to make 3 buttons that would do three different things to text in a box. These buttons would increase the font, decrease the font and animate the box. At first this lab was confusing because I didn't know that each button had to have an id until I got to my second button and it started making more sense. I also needed a div for the box so that it would be affected by the jQuery that I would input later on. After making a button id for each button I started the jQuery in a separate JavaScript file. I made each button do what function it needed to do and used the name of the buttons ids to do this.
After doing this I had to link the JavaScript to the HTML file so that all the buttons would work. This lab was interesting because it was a lot going on at one time which made it more challenging when coding. I made the CSS consistent with the background and text color to make the box stand out and also the buttons. This lab will be helpful in my future because I learned from my mistakes when I was troubleshooting and because of that I was able to complete the lab having it work correctly. I can now add things like this in future labs and projects and make it look more full with content that I would add to make the page more interactive.

No comments:
Post a Comment