Lab 4
In lab 4 we had to create an html page using JavaScript that would add an element after an on click event. Also there had to be an image of a ninja included and 3 buttons giving the options of kick, punch, and dodge. For the kuck button we had to give it a value and with the JavaScript it would give a random number between the two numbers you assigned it. Furthermore, we used code such as getElementByid, outerHTML, and give functions to certain ids. In addition, adding css helped make the html look more appealing and complex. For the JavaScript we also had to give the ninja a variable for his age, gender and birthday. This lab helped us learn more about ow to manipulate html elements and attributes which enhances our skills as a web developer.
Comments
Post a Comment