Web Ass3
Web Ass3
Page 1 of 4
cursor: pointer changes the cursor to indicate button interactivity.
hover effect changes the background color to a darker blue (#1c5cbf) when the mouse is
over the button.
Page 2 of 4
The decrement() function decreases the counter by 1.
Similar to the increment function, it updates the displayed value dynamically.
Page 3 of 4
Conclusion
This assignment successfully demonstrates how to build a simple and interactive counter
application using HTML, CSS, and JavaScript.
HTML provides the structure for displaying the counter and buttons.
CSS enhances the visual appeal with proper alignment, colors, and responsiveness.
JavaScript handles the logic for dynamically updating the counter value based on user
interactions.
Page 4 of 4