// DOM Manipulation Challenge


// I worked on this challenge [by myself, with: ].


// Add your JavaScript calls to this page:

// =================== Release 1: ===================
var div = document.getElementById("release-0");
div.className = "done";
// OR
document.getElementById("release-0").className = "done";


// =================== Release 2: ===================
document.getElementById("release-1").style.display = "none";


// =================== Release 3: ===================
var h1Collection = document.getElementsByTagName("h1");
h1Collection[0].innerHTML = "I completed release 2.";
// OR
document.getElementsByTagName("h1")[0].innerHTML = "I completed release 2.";


// =================== Release 4: ===================
document.getElementById("release-3").style.background = "#955251";


// =================== Release 5: ===================
var collection = document.getElementsByClassName("release-4");
for (var i = 0; i < collection.length; i++) {
  collection[i].style.fontSize = "2em";
}

// =================== Release 6: ===================
var template = document.getElementById("hidden");
document.body.appendChild(template.content.cloneNode(true));


@@ -60,25 +60,30 @@
 ge %5B
-by myself, with: 
+with: William Brinkert
 %5D.%0A%0A
@@ -1179,8 +1179,752 @@
 rue));%0A%0A
+// =================== Reflection ===================%0A// 1. What did you learn about the DOM?%0A//%0A//    We learned that the DOM is very logical. It has a clear hierarchy.%0A//    The elements in the DOM can be accessed and manipulated using the%0A//    methods identified below.%0A//%0A// 2. What are some useful methods to use to manipulate the DOM?%0A//%0A//    We can access the elements of the DOM using IDs, classes, and%0A//    tag names--e.g. getElementById(), getElementsByClassName(), and%0A//    getElementsByTagName(). They can also be accessed based on their%0A//    relationship to other tags (e.g., parents and children).%0A//    Furthermore, we can alter the style of elements using .style and%0A//    change the actual conent of tags using .innerHTML.

Complete reflection for 9.3