1
1
< html lang ="en ">
2
- < head >
3
- < meta charset ="utf-8 ">
2
+ < head >
3
+ < meta charset ="utf-8 " / >
4
4
5
5
< title > Tip Calculator</ title >
6
- < meta name ="description " content ="Javascript Tip Calulator ">
7
- < meta name ="author " content ="Supritha ">
8
-
9
- < link rel ="stylesheet " href ="styles.css ">
10
-
11
- </ head >
12
-
13
- < body >
14
- < div class ="container ">
15
-
16
- < div class ="inputBox ">
17
-
18
- < h1 > Tip Calculator</ h1 >
19
- < label > Bill Amount :</ label >
20
- < input type ="text " placeholder ="Enter bill amount " name ="" id ="bill_amount ">
21
- < br >
22
- < label > Tip Percent :</ label >
23
- < input type ="text " placeholder ="Enter tip percent " name ="" id ="tip_perc ">
24
- < br >
25
- < label > Tip Amount :</ label >
26
- < input type ="text " name ="" id ="tip_amount " disabled >
27
- < br >
28
- < label > Bill Total :</ label >
29
- < input type ="text " name ="" id ="bill_total " disabled >
30
- < br >
31
-
32
- < button onclick ="tipcalc() " id ="btn "> Calculate</ button >
33
-
34
- </ div > <!--inputBox-->
35
- </ div > <!--container-->
6
+ < meta name ="description " content ="Javascript Tip Calulator " />
7
+ < meta name ="author " content ="Supritha " />
8
+
9
+ < link rel ="stylesheet " href ="styles.css " />
10
+ </ head >
11
+
12
+ < body >
13
+ < div class ="container ">
14
+ < div class ="inputBox ">
15
+ < h1 > Tip Calculator</ h1 >
16
+ < label > Bill Amount :</ label >
17
+ < input
18
+ type ="text "
19
+ placeholder ="Enter bill amount "
20
+ name =""
21
+ id ="bill_amount "
22
+ />
23
+ < br />
24
+ < label > Tip Percent :</ label >
25
+ < input type ="text " placeholder ="Enter tip percent " name ="" id ="tip_perc " />
26
+ < br />
27
+ < label > Tip Amount :</ label >
28
+ < input type ="text " name ="" id ="tip_amount " disabled />
29
+ < br />
30
+ < label > Bill Total :</ label >
31
+ < input type ="text " name ="" id ="bill_total " disabled />
32
+ < br />
33
+
34
+ < button onclick ="tipcalc() " id ="btn "> Calculate</ button >
35
+ </ div >
36
+ <!--inputBox-->
37
+ </ div >
38
+ <!--container-->
36
39
< script src ="script.js "> </ script >
37
- </ body >
38
- </ html >
40
+ </ body >
41
+ </ html >
0 commit comments