// DOM Manipulation Challenge


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


// Add your JavaScript calls to this page:

// Release 0:


// Release 1:

document.getElementById("release-0").className = "done";



// Release 2:

document.getElementById("release-1").style.display = "none";


// Release 3:

document.getElementsByTagName("h1")[0].innerHTML = "I completed Release 2";

// example
// document.getElementsByTagName("P")[0].innerHTML = "Hello World!";

// Release 4: Add the background color #955251 to the #release-3 div. #955251 was Pantone's

document.getElementById("release-3").style.backgroundColor = "#955251";


// Release 5: Select all occurrences of class .release-4 and change the text-size to 2em.

// METHOD 1: With a for loop
// var x = document.getElementsByClassName("release-4")
// var i;
// for (i = 0; i < x.length; i++) {
//     x[i].style.fontSize = "2em";
// }

// METHOD 2: by index
var x = document.getElementsByClassName("release-4")[0].style.fontSize = "2em";
var x = document.getElementsByClassName("release-4")[1].style.fontSize = "2em";

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

// Reflections:


// QUESTION: What did you learn about the DOM?
//   Answer:  I learned how to "grab" elements by their ID using
//   the getElementById and getElementByClassName DOM commands.
//   Using the name of the element and the index (which instance
//   of that element for the case of a class that appears multiple
//   times in the document) we were able to access and manipulate
//   the HTML dynamically using JS.

// QUESTIONS: What are some useful methods to use to manipulate the DOM?
//   Answer:  The getElementById and getElementByClassName DOM
//   commands as well as appendChild and getElementsByTagName were
//   very useful as long as the .js file can be found by the html file.



@@ -59,28 +59,67 @@
 nge 
-%5Bby myself, with: %5D.
+with Luis Plaz%0A// We worked on this challenge for 1.5 hours
 %0A%0A%0A/

Update time worked info