-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (48 loc) · 1.41 KB
/
index.html
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
46
47
48
49
50
51
</<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Learning JavaScript</title>
<link rel = "stylesheet" href = "style.css">
<script src="jsBasics.js"></script>
</head>
<body>
<div class="header">
<h1 id = 'heading'>Learning JavaScript</h1>
</div>
<div class="container">
<h3 id = 'time'></h3>
<button onclick = "showDate()">Show Date</button>
<br /><br/>
<form method = "post" action="something.php" name="myForm" onsubmit="return validateForm()">
<div>
<label> First Name</label>
<input type = "text" name="firstName" id="firstName"/>
</div>
<br/>
<div>
<label> Last Name</label>
<input type = "text" name="lastName" id="lastName"/>
</div>
<br/>
<div>
<label>Background</label>
<select name="background" id="background"
onchange="changeBackground(this)">
<option value="red">Red</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
</select>
</div>
<br/>
<input type="submit" value="Submit"/>
</form>
</div>
<script>
// concatenating the 2 strings together
var number1 = '35';
var number2 = '40';
//alert(number1 + number2);
</script>
</body>
</html>