But, if you want the h1 color change on click, then your code is missing a function to trigger that action.
**HTML file**
<h1 id="main-heading" onClick="changeColor()">Favorite Movie Franchise</h1>
**js file**
function changeColor(){
let title;
title = document.querySelector('#main-heading')
title.style.color = "red";
}
Ok well, was hoping to find a javasexpert here, but maybe next time. Anyways all i tried was to download in vscode anything related to javascript, and then vscode now shows the properties for the object, as shown here in the code…
for (let i = 0; i < listItems.length; i++) {
listItems[i].style.fontSize = ‘1.2em’
listItems[i].style.fontFamily = ‘Verdana’
listItems[i].style.borderRadius = ‘15%’
listItems[i].style.padding = ‘15px’
listItems[i].style.margin = ‘5px’
listItems[i].style.margin = ‘5px’
listItems[i].style.opacity = ‘.6’
listItems[i].style.color = ‘purple’
listItems[i].style.border = ‘solid red 2px’