Edit This Code:
<!DOCTYPE html>
<html>
<body>

<h3>A h3 element</h3>
<h2>A h2 element</h2>

<script>
document.querySelector("h2, h3").style.backgroundColor = "red";
</script>

</body>
</html>




Result:
Try it Yourself - © w3schools.com
Privacy Policy