-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (44 loc) · 1.64 KB
/
index.html
File metadata and controls
49 lines (44 loc) · 1.64 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
46
47
48
49
<HTML>
<HEAD>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<TITLE>
USER DISPLAY
</TITLE>
<script>
function display()
{
var username = document.getElementById("username").value;
var age =document.getElementById("age").value;
var password=document.getElementById("password").value;
document.write(username,'<br>');
document.write(age,'<br>');
document.write(password);
}
</script>
<style>
body:before{
content: '';
position: fixed;
width: 100vw;
height: 100vh;
background-image: url("lights.jpg");
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
</HEAD>
<BODY>
<div class="container p-5">
<form>
<div class="form-group col 10 p-2">Username: <input id="username" placeholder="ENTER NAME" class="form-control" required> </input></div>
<div class="form-group col 10 p-2">age: <input id="age" placeholder="ENTER AGE" class="form-control"required></input></div>
<div class="form-group col 10 p-2">Password: <input id="password" type="password"
placeholder="Enter password" class="form-control"required> </input></div>
<div class="form-group col 10 p-2"><button onclick="display();">DISPLAY</button></div>
</div>
</form>
</div>
</body>
</html>