Skip to content

Commit 3823966

Browse files
committed
JS in Browser & sacript tag
1 parent cf9ad95 commit 3823966

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

Chapter 6/JS_Browser & Methods.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Chapter 6
2+
3+
1. JS Browser
4+
2. Script Tag
5+
3. Console Object Methods
6+
4. Interaction: alert, prompt and confirm
7+
5. Window Object: BOM & DOM
8+
-> Browser Object Model
9+
-> Document Object Model

Chapter 6/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width">
7+
<title>Chapter 6 - JS Browser</title>
8+
<link href="style.css" rel="stylesheet" type="text/css" />
9+
</head>
10+
11+
<body>
12+
Hello world
13+
<div>This is me</div>
14+
<script src="script.js"></script>
15+
16+
<!-- <script>
17+
console.log("Also use this method to create script file")
18+
</script> -->
19+
20+
21+
</body>
22+
23+
</html>

Chapter 6/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// alert("Hello")
2+
console.log("Hey Atul")

Chapter 6/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
html, body {
2+
height: 100%;
3+
width: 100%;
4+
background: yellowgreen;
5+
}

0 commit comments

Comments
 (0)