Skip to content

Commit b80b13a

Browse files
authored
Add files via upload
add note
1 parent f92c424 commit b80b13a

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Create Element Node</title>
7+
</head>
8+
<body>
9+
<div id="myid">
10+
<h1>We are learing javascript</h1>
11+
</div>
12+
<script>
13+
// create Element Node
14+
var nENode = document.createElement("h3");
15+
console.log(nENode);
16+
</script>
17+
</body>
18+
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Comment Node</title>
7+
</head>
8+
<body>
9+
<script>
10+
var nCNode = document.createCommentNode('comment node');
11+
console.log(nCNode)
12+
</script>
13+
</body>
14+
</html>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Create Docuemnt Fragment</title>
7+
</head>
8+
<body>
9+
<script>
10+
var dof = document.createDocumentFragment();
11+
console.log(dof);
12+
</script>
13+
14+
</body>
15+
</html>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Craete TextNode</title>
7+
</head>
8+
<body>
9+
<script>
10+
// create text node
11+
var nTNode = document.createTextNode("Text created");
12+
console.log(nTNode);
13+
14+
</script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)