-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (41 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<title>JavaScript</title>
<style type="text/css">
.errorMsg {
font-size: 10px;
color: red;
display: none;
}
.error input {
border-color: red;
}
.error .errorMsg {
display: block;
}
</style>
</head>
<body>
<div class="container">
<h1>This is Javascript !</h1>
<h2>Type of Car Manufacturers</h2>
<ul id="cars">
</ul>
</div>
<div class="input-box">
<input type="placeholder" name="company" id="carname" placeholder="Enter CAR company" class="required" >
<div class="errorMsg">Please enter class Company !!!</div>
</div>
<div class="input-box">
<input type="placeholder" name="company" id="carModel" placeholder="Enter car model !!!" class="required">
<div class="errorMsg">Please enter class Model !!!</div>
</div>
<div class="input-box">
<input type="placeholder" name="company" id="carColor" placeholder="Enter car color !!!" class="required">
<div class="errorMsg">Please enter class Color !!!</div>
</div>
<button id ="enter">Enter </button>
<script type="text/javascript" src="script1.js"></script>
</body>
</html>