diff --git a/JavaScript/Advance/DOM/6. DOM CSS/Images/js-logo.png b/JavaScript/Advance/DOM/6. DOM CSS/Images/js-logo.png new file mode 100644 index 0000000..4637ac9 Binary files /dev/null and b/JavaScript/Advance/DOM/6. DOM CSS/Images/js-logo.png differ diff --git a/JavaScript/Advance/DOM/6. DOM CSS/index.html b/JavaScript/Advance/DOM/6. DOM CSS/index.html new file mode 100644 index 0000000..6916c57 --- /dev/null +++ b/JavaScript/Advance/DOM/6. DOM CSS/index.html @@ -0,0 +1,26 @@ + + + + + + + + DOM-CSS + + + + +

DOM CSS

+

Example One

+

Hello there

+ +

Example Two

+

Hello there

+ +

Example Three

+

Hello there

+ + + + + \ No newline at end of file diff --git a/JavaScript/Advance/DOM/6. DOM CSS/script.js b/JavaScript/Advance/DOM/6. DOM CSS/script.js new file mode 100644 index 0000000..336fc58 --- /dev/null +++ b/JavaScript/Advance/DOM/6. DOM CSS/script.js @@ -0,0 +1,20 @@ +let textOne = document.getElementById('textOne'); + +function DisplayOne() { + textOne.style.color = "red"; +} + +let textTwo = document.getElementById('textTwo'); + +function DisplayTwo() { + textTwo.style.fontSize = "30px"; +} + +let textThree = document.getElementById('textThree'); + +function DisplayThree() { + textThree.style.fontFamily = "monospace"; + textThree.style.fontSize = "30px"; + textThree.style.color = "blue"; + textThree.style.fontWeight = "700"; +} \ No newline at end of file diff --git a/JavaScript/Advance/DOM/6. DOM CSS/style.css b/JavaScript/Advance/DOM/6. DOM CSS/style.css new file mode 100644 index 0000000..bd7da16 --- /dev/null +++ b/JavaScript/Advance/DOM/6. DOM CSS/style.css @@ -0,0 +1,3 @@ +h2 { + font-family: monospace; +} \ No newline at end of file