JSFiddle - React, Tailwind, and code Playground
by seong gyun jeon
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript">
window.onload = function(){
var div = document.createElement('div'); // 엘리먼트 노드를 생성한다.
var text = document.createTextNode('div element'); // 텍스트 노드를 생성한다.
div.setAttribute('nick', 'mohwa');
var comment = document.createComment('mohwa comment'); // 주석(Comment) 노드를 생성한다.
div.appendChild(text);
div.appendChild(comment);
document.body.appendChild(div);
}
</script>
</head>
<body>
<div>DOM</div>
</body>
</html>