diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-12-03 09:32:13 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2020-12-03 09:32:13 +0700 |
commit | 8644699f4d2fce12a41289f9627bc45be9dd1965 (patch) | |
tree | d31190ac36d10e297eeab0f6e7a70dc24395695d /usth/ICT3.2/prac/3/1-vanilla.html | |
parent | 82048ad9e3e4a96a38c8fa6a529798f40e33acb1 (diff) | |
download | cp-8644699f4d2fce12a41289f9627bc45be9dd1965.tar.gz |
[usth/ICT3.2] Develop web applications
Diffstat (limited to 'usth/ICT3.2/prac/3/1-vanilla.html')
-rw-r--r-- | usth/ICT3.2/prac/3/1-vanilla.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usth/ICT3.2/prac/3/1-vanilla.html b/usth/ICT3.2/prac/3/1-vanilla.html new file mode 100644 index 0000000..160b413 --- /dev/null +++ b/usth/ICT3.2/prac/3/1-vanilla.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<body> + <h1>Introduction</h1> + <div> + <h1>About HTML</h1> + <h1>About CSS</h1> + </div> + <h1>About JavaScript</h1> + + <script> + for (let parent of document.getElementsByTagName('div')) + for (let child of parent.children) + if (child.tagName == 'H1') + child.setAttribute('style', 'background-color: #436e58') + </script> +</body> +</html> |