ANSWER KEY for Sample Question Paper
Q.1 Fill in the blanks
1. HTML
2. head
3. ordered
4. id
5. Cascading
6. fixed
7. inline
8. audio
9. pattern
10. img
Q.2 State whether True or False
1. False
2. True
3. False
4. False
5. True
6. True
7. False
8. False
9. True
10. False
Q.3 Choose the correct alternative
1. c) date
2. b) <video>
3. b) color
4. c) Universal selector
5. b) required
6. b) <nav>
7. c) position
8. b) .css
9. c) Unordered list
10. b) IoT
Q.4 Select TWO correct alternatives
1. a) email, b) number
2. a) class, b) id
3. a) controls, b) autoplay
4. a) static, b) fixed
5. a) shared, c) dedicated
6. a) ranking website, c) increasing traffic
7. a) rect, b) circle
8. a) header, b) footer
9. a) dynamic pages, b) form validation
10. a) AI, b) IoT
Q.5 Select THREE correct alternatives
1. a) color, b) font-size, c) border
2. a) audio support, b) video support, c) semantic tags
Q.6 Match the following
Group A Correct Pair
1. <audio> Multimedia sound
2. <video> Multimedia video
3. <map> Image mapping
4. .css External style sheet
Q.8 A (1) External CSS Webpage
HTML File: [Link]
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
<link rel="stylesheet" href="[Link]">
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a sample webpage using External CSS.</p>
</body>
</html>
CSS File: [Link]
body {
background-color: lightblue;
font-family: Arial;
}
h1 {
color: darkblue;
text-align: center;
}
p {
color: black;
font-size: 18px;
}
Q.8 A (2) HTML5 Form with Validation
<!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h2>Student Registration Form</h2>
<form>
Name:
<input type="text" required><br><br>
Email:
<input type="email" required><br><br>
Age:
<input type="number" min="18" max="60"><br><br>
Date of Birth:
<input type="date"><br><br>
Password:
<input type="password" pattern="[A-Za-z0-9]{6,}" required><br><br>
<input type="submit" value="Register">
</form>
</body>
</html>
Q.8 B (1) Largest of Three Numbers
<!DOCTYPE html>
<html>
<head>
<title>Largest Number</title>
</head>
<body>
<script>
var a = 10;
var b = 25;
var c = 15;
if (a > b && a > c) {
[Link]("Largest number is: " + a);
}
else if (b > a && b > c) {
[Link]("Largest number is: " + b);
}
else {
[Link]("Largest number is: " + c);
}
</script>
</body>
</html>
Q.8 B (2) Display Even Numbers from 1 to 50
<!DOCTYPE html>
<html>
<head>
<title>Even Numbers</title>
</head>
<body>
<script>
var i;
for (i = 1; i <= 50; i++) {
if (i % 2 == 0) {
[Link](i + "<br>");
}
}
</script>
</body>
</html>