-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTML.php
162 lines (161 loc) · 7.45 KB
/
HTML.php
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include("header.php");
?>
<div class="table-responsive">
<table class="table table-dark table-bordered">
<tr>
<th colspan="2">Q.HTML stands for?</th>
</tr>
<tr>
<td id="q1o1" onclick="correct(this.id)"> A.Hyper Text Markup Language</td>
<td id="q1o2" onclick="wrong(this.id)"> B.High Text Markup Language</td>
</tr>
<tr>
<td id="q1o3" onclick="wrong(this.id)"> C.Hyper Tabular Markup Language</td>
<td id="q1o4" onclick="wrong(this.id)"> D.None of these</td>
</tr>
<tr>
<th colspan="2">Q.which of the following tag is used to mark a begining of paragraph ?</th>
</tr>
<tr>
<td id="q2o1" onclick="wrong(this.id)"> A.<TD></td>
<td id="q2o2" onclick="correct(this.id)"> B.<P></td>
</tr>
<tr>
<td id="q2o3" onclick="wrong(this.id)"> C.<TR></td>
<td id="q2o4" onclick="wrong(this.id)"> D.<BR></td>
</tr>
<!--###########################-->
<tr>
<th colspan="2">Q.Correct HTML tag for the largest heading is</th>
</tr>
<tr>
<td id="q3o1" onclick="wrong(this.id)"> A.<HEAD></td>
<td id="q3o2" onclick="correct(this.id)"> B.<H1></td>
</tr>
<tr>
<td id="q3o3" onclick="wrong(this.id)"> C.<H6></td>
<td id="q3o4" onclick="wrong(this.id)"> D.<Heading></td>
</tr>
<!--###########################-->
<tr>
<th colspan="2">Q.The attribute of <form> tag</th>
</tr>
<tr>
<td id="q4o1" onclick="wrong(this.id)"> A.Method</td>
<td id="q4o2" onclick="wrong(this.id)"> B.Action</td>
</tr>
<tr>
<td id="q4o3" onclick="correct(this.id)"> C.Both (a)&(b)</td>
<td id="q4o4" onclick="wrong(this.id)"> D.None of these</td>
</tr>
<tr>
<th colspan="2">Q.www is based on which model?</th>
</tr>
<tr>
<td id="q5o1" onclick="wrong(this.id)"> A.Local-server</td>
<td id="q5o2" onclick="correct(this.id)"> B.Client-server</td>
</tr>
<tr>
<td id="q5o3" onclick="wrong(this.id)"> C.3-tier</td>
<td id="q5o4" onclick="wrong(this.id)"> D.None of these</td>
</tr>
<!--###########################-->
<tr>
<th colspan="2">Q.Which of the following attributes of text box control allow to limit the maximum character?</th>
</tr>
<tr>
<td id="q6o1" onclick="wrong(this.id)"> A.size</td>
<td id="q6o2" onclick="wrong(this.id)"> B.len</td>
</tr>
<tr>
<td id="q6o3" onclick="correct(this.id)"> C.maxlength</td>
<td id="q6o4" onclick="wrong(this.id)"> D.all of these</td>
</tr>
<!--############################################################################################################-->
<tr>
<th colspan="2">Q.Web pages starts with which ofthe following tag?</th>
</tr>
<tr>
<td id="q7o1" onclick="wrong(this.id)"> A.<Body></td>
<td id="q7o2" onclick="correct(this.id)"> C.<HTML></td>
</tr>
<tr>
<td id="q7o3" onclick="wrong(this.id)"> B.<Form></td>
<td id="q7o4" onclick="wrong(this.id)"> D.<Title></td>
</tr>
<!--###########################-->
<tr>
<th colspan="2">Q.To create HTML page, you need</th>
</tr>
<tr>
<td id="q8o1" onclick="wrong(this.id)"> A.Web browser</td>
<td id="q8o2" onclick="wrong(this.id)"> B.text editor</td>
</tr>
<tr>
<td id="q8o3" onclick="correct(this.id)"> C.both a & b</td>
<td id="q8o4" onclick="wrong(this.id)"> D.None of the above</td>
</tr>
<!--############################################################################################################-->
<tr>
<th colspan="2">Q.<a> and </a> are the tags used for</th>
</tr>
<tr>
<td id="q9o1" onclick="wrong(this.id)"> A.Adding image</td>
<td id="q9o2" onclick="wrong(this.id)"> B.Adding text</td>
</tr>
<tr>
<td id="q9o3" onclick="wrong(this.id)"> C.Audio-voiced text</td>
<td id="q9o4" onclick="correct(this.id)"> D.Adding links to your page</td>
</tr>
<!--###########################-->
<tr>
<th colspan="2">Q.What does <BR> tag add to your webpage?</th>
</tr>
<tr>
<td id="q10o1" onclick="wrong(this.id)"> A.Long break</td>
<td id="q10o2" onclick="wrong(this.id)"> B.Paragraph break</td>
</tr>
<tr>
<td id="q10o3" onclick="correct(this.id)"> C.Line break</td>
<td id="q10o4" onclick="wrong(this.id)"> D.None of the above</td>
</tr>
</table>
</div>
<?php
include("score_btn.php");
?>
<?php
include("footer.php");
?>
<script language="javascript" type="text/javascript">
var x=0,y=0;
function correct(id){
document.getElementById(id).style.backgroundColor="#00cd00";
document.getElementById(id).style.color="white";
x++;
}
function wrong(id){
document.getElementById(id).style.backgroundColor="#ff0000";
document.getElementById(id).style.color="white";
y++;
}
function score(){
//document.getElementById("print").innerHTML=x+"/"+(x+y);
alert("YOU SCORE :-"+x+"/"+(x+y));
}
</script>
</body>
</html>