diff --git a/Table_of_contents.html b/Table_of_contents.html new file mode 100644 index 0000000..4c8b218 --- /dev/null +++ b/Table_of_contents.html @@ -0,0 +1,30 @@ + + + + + + Table of Contents + + + +
+

Table of Contents

+
+
+
+

Fruits

+

Red Fruits

+

Apple

+

Raspberry

+

Orange Fruits

+

Orange

+

Tangerine

+

Vegetables

+

Vegetables Which Are Actually Fruits

+

Tomato

+

Eggplant

+ +
+ + + \ No newline at end of file diff --git a/about.css b/about.css new file mode 100644 index 0000000..e4e5a88 --- /dev/null +++ b/about.css @@ -0,0 +1,5 @@ + + +h1 { + color:red; +} \ No newline at end of file diff --git a/about.html b/about.html new file mode 100644 index 0000000..ef990fc --- /dev/null +++ b/about.html @@ -0,0 +1,28 @@ + + + + + + + About me + + + +

About Me

+
+ + + +

+My picture + + + + + + \ No newline at end of file diff --git a/dom.css b/dom.css new file mode 100644 index 0000000..6ad763f --- /dev/null +++ b/dom.css @@ -0,0 +1,5 @@ +button{ + + padding: 10px; + font-weight: bold; +} diff --git a/dom.js b/dom.js new file mode 100644 index 0000000..d289829 --- /dev/null +++ b/dom.js @@ -0,0 +1,56 @@ +function addText(){ +document.getElementById("para1").textContent="We are Coders!"; +} + +function changeText(){ + document.getElementById("para1").innerText="Developers for life!" + +} + +function addImg(){ + let image = new Image(); + image.src="img1.jpg"; + document.getElementById("para2").appendChild(image); +} +/*function addImg(){ + let x = document.createElement("img"); + x.setAttribute("src","img1.jpg"); + document.body.appendChild(x); + +}*/ + +function changeColor(){ + document.getElementById("para1").style.color="Blue"; +} + +function changeFont(){ + document.getElementById("para1").style.fontSize="40px"; +} + +function hideImage(){ + document.getElementById("para2").textContent=""; +} + + + + +/*var a; +function show_hide() +{ +if (a===1) + { + document.getElementById("image").style.display="inline"; + return a=0; + } + else + { + document.getElementById("image").style.display="none"; + return a=1; + } + +} +*/ + + + + diff --git a/js-dom.html b/js-dom.html new file mode 100644 index 0000000..1b1ff71 --- /dev/null +++ b/js-dom.html @@ -0,0 +1,46 @@ + + + + DOM Lab + + + +

+ + + + + + + + +

+ + + + + + + + + + + + +