Aprovecha el precio especial.

Antes:$249

Currency
$209

Paga en 4 cuotas sin intereses

Paga en 4 cuotas sin intereses
Suscríbete

Termina en:

13d

03h

08m

33s

1

Read DOM nodes

  • parent.getElementById('id');

    • It allows us to obtain an element by its identification.
  • parent.getElementsByClassName(‘class’):

    • It allows us to obtain an Array with all the child elements that have the same class.
    • “getElementByClassName” does not exist, that is to say we will not be able to obtain only 1 element with that class.
  • parent.getElementsByTagName(‘div’);

    • It allows us to obtain an Array with all the child elements that have the same Tag name.
    • “parent.getElementsByTagName” does not exist, that is to say we will not be able to obtain only 1 element with that Tag name.
  • parent.querySelector(' ') 🌟

    • It allows us to search in 3 ways and returns the first item that matches the search pattern.
      • By id
      • By Class name
      • By Tag name
  • parent.querySelectorAll(' ') 🌟

    • It allows us to search in 3 ways and returns a NodeList with items that matches the search pattern.
      • By id
      • By Class name
      • By Tag name
Escribe tu comentario
+ 2