diff --git a/about.html b/about.html new file mode 100644 index 0000000..fd7d104 --- /dev/null +++ b/about.html @@ -0,0 +1,19 @@ + + + + + + About Me + + + + + + diff --git a/fruitandveg.html b/fruitandveg.html new file mode 100644 index 0000000..ff55d57 --- /dev/null +++ b/fruitandveg.html @@ -0,0 +1,53 @@ + + + + + + Fruits and Vegetables + + +
+

Table of Contents

+
+
+ +
+

Fruits

+

Red Fruits

+

Apple

+

Raspberry

+

Orange Fruits

+

Orange

+

Tangerine

+

Vegetables

+

Vegetables Which Are Actually Fruits

+

Tomato

+

Eggplant

+
+ + + + diff --git a/img/Myphoto.JPG b/img/Myphoto.JPG new file mode 100644 index 0000000..e517daf Binary files /dev/null and b/img/Myphoto.JPG differ diff --git a/js-dom.html b/js-dom.html new file mode 100644 index 0000000..6f57bdd --- /dev/null +++ b/js-dom.html @@ -0,0 +1,50 @@ + + + + + + Document + + +

+

+ + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..fef4ace --- /dev/null +++ b/main.js @@ -0,0 +1,24 @@ +// Change the body style so it has a `font-family` of `Arial, sans-serif`. +document.querySelector("body").style.fontFamily = "Arial, sans-serif"; + +//Replace each of the values with your own information. +document.getElementById("nickname").textContent = "Nickname: cayenne pepper"; +document.getElementById("favorites").textContent = + "Favorites: music, cheesecake, The Office"; +document.getElementById("hometown").textContent = "Hometown: New Castle"; +document.getElementById("randomFact").textContent = + "Random Fact: Red is my favorite color."; + +//Change the `
  • ` style to a color of your choosing. Cannot be black. +let liText = document.querySelectorAll("li"); +for (let i = 0; i < liText.length; i++) { + liText[i].style.color = "#0E497C"; +} + +let x = document.createElement("img"); +x.setAttribute("src", "./img/Myphoto.JPG"); +x.setAttribute("width", "304"); +x.setAttribute("height", "228"); +x.setAttribute("alt", "photo of me"); +document.body.appendChild(x); +