Last active
August 16, 2019 14:56
-
-
Save perguth/4fc0cd466991fa0302eecd54ce935610 to your computer and use it in GitHub Desktop.
Some website starter.
This file contains 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
<!doctype html> | |
<title>My website</title> | |
<!-- Validate your own here: https://validator.w3.org/ --> | |
<main> | |
<h1>My website</h1> | |
<p>Some texts.</p> | |
</main> | |
<script> | |
setTimeout(_ => { | |
const paragraphs = document.getElementsByTagName('p') | |
const firstParagraph = paragraphs[0] | |
firstParagraph.innerHTML = 'Some other text.' | |
firstParagraph.style.backgroundColor = 'pink' | |
}, 1300) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment