-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms_one.html
34 lines (27 loc) · 1010 Bytes
/
forms_one.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background-color: rgb(44, 37, 37);
color: aliceblue;
}
</style>
</head>
<body>
<h1>Forms in HTML</h1>
<!-- There are many attributes for forms, some important ones are here-->
<form action="" method="GET" accept-charset="UTF-8" autocomplete="off" enctype="text/plain">
<label for="fname">First Name</label> <br>
<input type="text" placeholder="Enter first name" name="" id="fname">
<br> <!-- Adding label is a good practise as it adds proper visibility to the page-->
<label for="lname">Last Name</label> <br>
<input type="text" placeholder="Enter last name" name="" id="lname">
<br> <!--Button is to submit the information-->
<button type="submit">Submit Information</button>
</form>
</body>
</html>