var heading = document.getElementsByTagName("h1"); // this gets all the h1 tag from html document // you can let any tag from html and store in a desired variable for manipulation