-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyFirstPage.html
More file actions
45 lines (41 loc) · 1.07 KB
/
myFirstPage.html
File metadata and controls
45 lines (41 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>myFirstPage</title>
<!-- Here we import our javascript code. -->
<script src="myFirstJavascript.js" type="text/javascript"></script>
</head>
<body>
<header>
<h1>Welcome</h1>
<h2>My first Javascript</h2>
<p>What we learn today:</p>
<ul>
<li>const</li>
<li>document</li>
<li>getElementById()</li>
<li>createElement()</li>
<li>innerHTML</li>
<li>appendChild</li>
</ul>
<hr />
<p>
Village name 1: <input id="villageName1" type='text' value="Pfungen" />
</p>
<p>
Village name 2: <input id="villageName2" type='text' value="Neftenbach" />
</p>
<p>
<!--
Here we refer to a javascript function.
The function's single argument is a string reference
to the input whose value we want.
-->
<input type='button' onclick='fillData()' value='Print'>
</p>
<div id='container'></div>
</header>
</body>
</html>