Created
November 27, 2019 04:01
-
-
Save Draketheb4dass/56d61599b09d19fbf4f9653603d6fe79 to your computer and use it in GitHub Desktop.
Display hello DOM manipulation
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
const h1 = document.createElement("h1") | |
document.body.appendChild(h1) | |
h1.innerHTML = "Hello World" | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment