Created
October 24, 2020 06:20
-
-
Save bipinrajbhar/88de7a97f6768445aa6c473f4c6b1b71 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Excercise</title> | |
</head> | |
<body> | |
<!-- create a 'div' element with an id 'root' --> | |
<script> | |
// create a 'div' element | |
// 📜 https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement | |
// set the textContent of div element to 'Hello World' | |
// 📜 https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent | |
// append the div element to root div using append method | |
// 📜 https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/append | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment