Part-5 Prac 3 :Traversing the DOM:Perform following tasks using above HTML mark up: 1. Use the firstChild property to access an element. 2. Use the lastChild property to access an element. 3. Use the nextSibling property to access an element. 4. Use the previousSibling property to access an element. 5. Use the parentNode property to access an element. 6. Use the childNodes property to access a group of child elements.

















1. Use the firstChild property to access an element.
2. Use the lastChild property to access an element.
3. Use the nextSibling property to access an element.
4. Use the previousSibling property to access an element.
5. Use the parentNode property to access an element.
6. Use the childNodes property to access a group of child elements.

Name: Naisarg Modi
ID: 18CE055



Comments

Popular posts from this blog

Part-7 Prac 2: Study and demonstrate php syntax, data type, variable, function, array, superglobal variable and form (Self-learning exercise using this link: https://www.w3schools.com/php/).

Part-6 Prac 5 :Create Hello World program using Node.js.