let item = document.querySelectorAll('p'); for (let i =0; i < item.length; i++){ item[i].style.color = 'red' }