Skip to content

bmanim420/dom-manipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOM Manipulation Exercises

Task 1:

After the HTML document loads, print the text of the first heading in the console.


Task 2:

In the HTML view:

a. Add a button, which when clicked adds a 'p' element with text 'Hello World' to the given 'div'

b. Add two buttons for red and green, clicking each changes the background color to the respective color

c. Add a button, that redirects the page to Google


Task 3:

Add jQuery to the HTML document.


Task 4 - Use jQuery

In the HTML view:

a. Add a button, which when clicked adds a ‘div’ with text “Hello World”

b. Add two buttons for red and green, clicking each changes the background color to the respective color

c. Add two input elements, and a button that allows to add two numbers and shows the result on the screen.

Task4c


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published