<!DOCTYPE html>
<html>
<head></head>
<body>
<p id="p1-id">p1-id tag</p>
<p id="p2-id">p2-id tag</p>
<p id="p3-id">p3-id tag</p>
<script>
var all_p = document.getElementsByTagName("p");
var i;
for (i = 0; i < all_p.length; i++)
all_p[i].style.backgroundColor = "peachpuff";
/*
run:
the backgroundColor of all <p> tags will change to "peachpuff"
*/
</script>
</body>
</html>