-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (69 loc) · 2.35 KB
/
Copy pathindex.html
File metadata and controls
74 lines (69 loc) · 2.35 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<style>
/* Style inputs with type="name", select elements and textareas */
input[type=number], select, textarea {
align: center;
width: 10%; /* Full width */
padding: 8px; /* Some padding */
border: 2px solid #000000; /* Gray border */
border-radius: 2px; /* Rounded borders */
box-sizing: border-box; /* Make sure that padding and width stays in place */
margin-top: 4px; /* Add a top margin */
margin-bottom: 4px; /* Bottom margin */
resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}
/* Style the submit button with a specific background color etc */
button[type=submit] {
background-color: #04AA6D;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* When moving the mouse over the submit button, add a darker green color */
bitton[type=submit]:hover {
background-color: #45a049;
}
/* Add a background color and some padding around the form */
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
body {
color: white;
background-size: cover;
background-image: url('https://speedwaymedia.com/wp-content/uploads/2020/11/chuttersnap-gts_Eh4g1lk-unsplash-scaled.jpg');
}
</style>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vehicle Performance Prediction</title>
</head>
<body>
<h1>Vehicle Performance Prediction</h1>
<form method="POST" action="/predict">
<p>cylinders</p>
<input type="number" name="cylinders" required>
<p>displacement</p>
<input type="number" name="displacement" required>
<p>horsepower</p>
<input type="number" name="horsepower" required>
<p>weight</p>
<input type="number" name="weight" required>
<p>acceleration</p>
<input type="number" name="acceleration" required>
<p>modelyear</p>
<input type="number" name="modelyear" required>
<p>origin</p>
<input type="number" name="origin" required>
<br>
<br>
<button type="submit">Submit</button>
</form>
</body>
</html>