Last active
October 30, 2018 09:13
-
-
Save alpgul/79f88ad66ab29d6d823803a39c69c21d to your computer and use it in GitHub Desktop.
JavaScript Can Change HTML Content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.getElementById("demo").innerHTML = "Hello JavaScript!" | |
| document.getElementById('demo').innerHTML = 'Hello JavaScript'; | |
| //--------------- | |
| document.getElementById("demo").style.fontSize = "35px"; | |
| //or | |
| document.getElementById('demo').style.fontSize = '35px'; | |
| //----------- | |
| document.getElementById("demo").style.display = "none"; | |
| //or | |
| document.getElementById('demo').style.display = 'none'; | |
| //---- | |
| document.getElementById("demo").style.display = "block"; | |
| //or | |
| document.getElementById('demo').style.display = 'block'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment