Skip to main content

PRACTICAL 5_3

PRACTICAL 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.









THEORY
In this web page,basics properties of Javascript are used to access diffferent elements .

IMPORTANT TAGS & ATTRIBUTES:
  • firstChild
  • lastChild
  • nextSibling
  • previousSibling
  • parentNode
  • childNodes




SCREENSHOT WEB PAGE:










NAME:AYUSH SINGLA
ID:18CE122

Comments