Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const sectionB = document.querySelector('section#b');
  2. const p4 = sectionB.getElementsByTagName('p')[0];
  3. p4.style.backgroundColor = 'red';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement