SDC Rec
SDC Rec
1
2
6 Laboratory Record
7
9
10
Name :: MATETI RITHVIKA
Roll No :: 23P81A0538
Subject : Skill Development Course
Department : Computer Science and
Engineering
Academic : 2024-25 Semester : IV
Year
11
12
2
3
CERTIFICATE
24-01-
2 Write an HTML program to display time-table of your class. 3
2025
Write an HTML program to demonstrate different Cascading 31-01-
3 Style Sheet (inline, internal & external) CSS. 5
2025
07-02-
4 Write an HTML program to create a login page with CSS. 7
2025
Write an HTML program to create a form described as
below:
• a text box to read name and roll number of a student
• a select button for the options (like 2-CSE-A, 2-CSE-B, 2-
14-02-
5 CSE-C) 9
2025
• a radio button for willingness to participate in an
event(ready, not-ready, may-be-later)
• a check box to specify various events (solodance, group-
dance, flash-mob
Write an HTML program to demonstrate internal & external 21-02-
6 java script. 11
2025
Write an HTML program to create a login-form with
28-02-
7 validations by using java script and display alert messages 14
2025
accordingly.
Write HTML program(s) with necessary hyperlinks to
perform the below tasks: • sign-in form
07-03-
8 • sign-up form 18
2025
• forgot-password
6
7
16
17 1 Write an HTML program using basic html tags
8
9
71 </form>
72 </body>
73 </html>
74 Page | 1
10
11
75
76
12
13
1
2
3
4
5 2. HTML program demonstrates inline, internal and external cascading style
6 sheet
7
8 <!-- 2html-tags-with-css.html -->
9 <html lang="en">
10 <head>
11 <meta charset="utf-8">
12 <meta name="viewport" content="width=device-width, initialscale=1">
13 <title> HTML-CSS </title>
14 <!-- internal styles-->
15 <style>
16 #p1{color:red}
17
.c1{font-size:13pt}
18
19 .c2{color:blue}
20 </style>
21 <!-- external styles -->
22 <link rel=’stylesheet’ href='2ext-style.css'>
23 </head>
24 <body>
25 <p id='p1'> text in a paragraph-1 with id-attribute which
26 is unique per element.<br>
27 'id'-attribute is having more priority than a 'class' attribute
28 </p>
29 <p class='c1 c2'>
30 text in another paragraph-2 specifying with 'class' attribute.<br>
31 a class is an attribute we can use to assign a name to<br> one or
32 more elements so they can share common styles or behavior.
33 </p>
34 <p style="text-decoration: line-through;">
35 This text is strike out. (inline-style-sheet)</p>
36 <p id='p4'> External style is applied to
37 this paragraph
38 </p>
39 Enter text here <input type='text' class='c1' value='created by
40 23P81A0516'>
41 </body>
</html>
<!-- the content of ext-style.css is:
#p4{
color:green;
14
15
77 .
16
17
3. Write an HTML program to display the time tale of your class
55 <td>BEFA</td>
56 <td colspan=2>RTP</td>
57 </tr>
58 <tr>
59 <th> Thursday </th>
60 <td>OS</td>
61 <td>DBMS</td>
62 <td colspan=2>CP</td>
63 <td colspan=2>COI</td>
64 <td>Sports</td>
65 </tr>
66 <tr>
67 <th> Friday </th>
68 <td>SE</td>
69 <td>DM</td>
70 <td colspan=2>DBMS</td>
71 <td>DM</td>
72 <td colspan=2>SDC</td>
73 </tr>
74 <tr>
75 <th> Saturday </th>
76 <td colspan=2>DBMS</td>
77 <td>SE</td>
78 <td>DM</td>
79 <td>BEFA</td>
80 <td>COI</td>
81 <td>SDC</td>
82 </tr>
83 <tfoot>
84 <tr>
85 <td colspan=9 style="text-align: right;">created by 23P81A0516</td>
86 </tr>
87 </tfoot>
88 </table>
89 <center>
90 </body>
91 </html>
92
20 6
21
93
94 Page |
22
23
12
34
56
78
9
10
11
12
13
14
15
16
17
18
19 4 Write an HTML program to create a login page with CSS
20
21 <!-- 4 login-form-with-css.html -->
22 <html lang="en">
23 <head>
24
<meta charset="utf-8">
25
26 <meta name="viewport" content="width=device-width, initial-scale=1">
27 <title>23P81A0516-login-form-css</title>
28 <style>
29 #style2{text-align:center;}
30 td{padding:5px;} #uname{color:red}
31 input[type=submit]{font-size:20px}
32 </style>
33 </head>
34 <body>
35 <form class='form' method='post' action='#'>
36 <table border=0>
37 <tr>
38 <td> User Name : </td>
39 <td> <input type='text' id='uname'> </td>
40 </tr>
41 <tr>
<td> Password : </td>
<td> <input type='password' id='pwd'> </td>
</tr>
<tr>
<td colspan=3 id='style2' >
<input type='submit' value='submit'>
<input type='reset' value='reset'> <br>
Forgot password? <a href='forgotpwd.html'> click here </a>
</td>
</tr>
<tfoot>
<tr>
<td colspan=9 style="text-align: right;">created by 23P81A0516</td>
</tr>
24
25
95
96
26 Page | 9
27
115
30 Page | 11
31
12
34
56
78
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 6 Write an HTML program to demonstrate internal & external java script
24
25 <!-- file-name 6js-internal-external.html -->
26 <html lang="en">
27 <head>
28 <meta charset="utf-8">
29 <meta name="viewport" content="width=device-width, initial-scale=1">
30 <title>23P81A0516-internal-external-js</title>
31 <script type='text/javascript' src='externaljs.js'> </script>
</head>
32
<script type='text/javascript'>
alert("this alert message is displayed at the time of loading the
page"); </script>
<body>
A HTML program to demonstrate java script (internal & external)
<br>
Internal script:<br>
An alert message printed when the page loads<br><br>
External script:<br>
When the button is clicked, a confirm message is displayed<br>
<input type='submit' value='confirm msg' onClick='confirmMsg()'>
</body>
</html>
32
33
116
117 Figure: Q6A – When the page is loaded
118
119
120
121
122
123 Figure: Q6B – After closing the alert window
124
125
34 Page | 13
35
126
127 Figure: Q6C – When confim msg button is clicked
128
129
130
131
132 Figure: Q6D – Confirm message button’s choice is OK
133
134
135
136 Figure: Q6E – Confirm message button’s choice is Cancel
137
138
36
37
7 Write an HTML program to create a login-form with validations by using java script and
display alert messages accordingly.
38 Page | 15
39
165 }
166 Figure: Q7A – landing page
167
168
169
40
41
54
42 Page | 17
43
44
45
56
57 Figure: Q7C – User name = ‘23P81A0516’
58 and the password = ‘23P81A0516’
59
60
61
62 Figure: Q7D – User name = ‘a23P81A0516’
63 and the password = ‘@23P81A0516’
64
46 Page | 19
47
8 Write HTML program(s) with necessary hyperlinks to perform the below tasks:
• sign-in form
• sign-up form
• forgot-password
48
49
65
66 Figure: Q8A – Sign-in form
67
50 Page | 21
51
12
34
5 <!-- 8signup.html -->
67 <html lang="en">
89 <head>
10 <meta charset="utf-8">
11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 <title> 23P81A0516-KeshavParv2K25-Registration</title>
13 <style>
14
15 #style2{text-align:center;}
td{padding:5px;} #uname{color:red}
16
input{font-size:20px}
17
.container{ border: 2px solid black; /* border to the
18
div content*/ display:inline-block; /* area to occupy the
19
div content */ display: table; /* div to be placed in center
20
*/ margin-right: auto; margin-left: auto;
21
text-align: center; /*center the text*/
22
23 }
24 </style>
25 </head>
26 <body>
27 <div class='container'>
28 <h4>Keshav Memorial College of Engineering</h4>
29 <h5>KeshavParv2K25 Event Registration Page</h5> <hr>
30 <form class='form' method='post' action='#'>
31 <table border=0>
32 <tr>
33 <td> User Name : </td>
34
<td> <input type='text' id='uname'> </td>
35
</tr>
36
37 <tr>
38 <td> Password : </td>
39 <td> <input type='password' id='pwd'> </td>
40 </tr>
41 <tr>
42 <td> E-mail : </td>
43 <td> <input type='text' id='email'> </td>
44 </tr>
45 <tr>
46 <td colspan=3 id='style2' >
47 <button type='button'>Register</button>
48
<input type='reset' value='reset'> <br>
49
50 Already registered? <a href='8signin.html'> click here </a>
</td>
51 </tr>
</table>
</form>
</div>
</body>
</html>
52
53
68
69 Figure: Q8B – Signup form
70
54 Page | 23
55
1
2
3 <!-- 8forgotpwd.html -->
4 <html lang="en">
5 <head>
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <title>23P81A0516-KeshavParv2K25-forgotpwd</title>
9 <style>
10 #style2{text-align:center;}
td{padding:5px;}
11
#uname{color:red} input{font-
12 size:20px}
13 .container{ border: 2px solid black; /* border to the
14 div content*/ display:inline-block; /* area to occupy
15 the div content */ display: table; /* div to be placed in
16 center */ margin-right: auto; margin-left: auto;
17 text-align: center; /*center the text*/
18 }
</style>
19
</head>
20
<body>
21
<div class='container'>
22
<h4>Keshav Memorial College of Engineering</h4>
23 <h5>KeshavParv2K25 Event<br>(forgot password)</h5><hr>
24 <form class='form' method='post' action='#'>
25 <table border=0>
26 <tr>
27 <td> User Name : </td>
28 <td> <input type='text' id='uname'> </td>
29 </tr>
30 <tr>
31 <td> E-mail : </td>
32 <td> <input type='text' id='email'> </td>
33 </tr>
34 <tr>
35 <td colspan=3 id='style2' >
36 <button type='button'>Submit</button>
37 <input type='reset' value='reset'> <br>
New user? <a href='8signup.html'> SignUp here </a>
38
</td>
39
</tr>
40
</table>
41
</form>
42 </div>
43 </body>
44 </html>
45
56
57
71
72 Figure: Q8C – Forgot password
58 Page | 25
59
60
61
</div>
<div class="row">
<div class="col-xs-12">
<label>New user? <a href="bootstrap-signup.html">Sign-Up
here</a></label>
Page | 24
73 </div>
74 </div>
75 </div>
76 </div>
77 </div>
78 </div>
79 </body>
80 </html>
81
82
83 Figure: Q9A – View in Samsung Galaxy A51/71 with 914 x 412 resolution
62 Page | 27
63
84
85 Figure: Q9B – View in Samsung Galaxy A51/71 with 412 x 914 resolution
86
64 Page | 28
65
119
66 Page | 29
67
1
2
3
4
5
6
7 11 to perform the CRUD (Create, Read, Update & Delete) operations on a
8 tables using JDBC Connectivity
9 //file name: DatabaseCRUD.java
10 //javac -cp mysql-connector-j-9.3.0.jar; DatabaseCRUD.java
11 //java -cp mysql-connector-j-9.3.0.jar; DatabaseCRUD
12 //before run the above command, mysql should be installed
13 //either xampp server / mysql-server
14 //and a database ('test') should be existed
15 import java.sql.*; import
16 java.util.Scanner;
17 Write a Java program
18 class DatabaseCRUD {
19 private static final String DB_URL =
20 "jdbc:mysql://localhost:3306/test"; private
21 static final String DB_USER = "root"; private
22 static final String DB_PASSWORD = ""; private
23 static Connection con;
24 private static Scanner scanner = new Scanner(System.in);
25 public static void main(String[] args) { try {
26 Class.forName("com.mysql.cj.jdbc.Driver"); // For MySQL
27 // Class.forName("oracle.jdbc.driver.OracleDriver"); // For Oracle
28 con = DriverManager.getConnection(DB_URL, DB_USER, DB_PASSWORD);
29 System.out.println("Connected to database.");
30 while (true) {
31 System.out.println("\n--- CrUD Menu ---");
32 System.out.println("1. Create User");
33 System.out.println("2. Read Users");
34 System.out.println("3. Update User");
35 System.out.println("4. Delete User");
36
System.out.println("5. Exit");
37 System.out.print("Choose option: ");
38 int choice = Integer.parseInt(scanner.nextLine());
39 switch (choice) { case 1: createUser();
40 break; case 2: readUsers(); break;
41 case 3: updateUser(); break; case 4:
42 deleteUser(); break; case 5:
43 con.close();
44
System.out.println("Connection closed. Exiting...");
45 return; default:
46 System.out.println("Invalid choice.");
47
}
68 Page | 30
69
54
55
56
57
58
59
60
61
62
63 e.printStackTrace();
64 } }
65 private static void createUser() throws SQLException {
66 System.out.print("Enter name: ");
67 String name = scanner.nextLine();
68 System.out.print("Enter email: ");
69 String email = scanner.nextLine();
70 String sql = "INSERT INTO users (name, email) VALUES (?, ?)";
71
PreparedStatement stmt = con.prepareStatement(sql);
72 stmt.setString(1, name); stmt.setString(2, email);
73 int rows = stmt.executeUpdate();
74 if (rows > 0) {
75 System.out.println("User added successfully.");
76 }
77
stmt.close();
78
79 }
80 private static void readUsers() throws SQLException {
81 String sql = "SELECT * FROM users";
82 Statement stmt = con.createStatement();
83 ResultSet rs = stmt.executeQuery(sql); System.out.println("\
84 n--- Users ---");
85 while (rs.next()) {
86 System.out.printf("ID: %d, Name: %s, Email: %s%n",
87 rs.getInt("id"), rs.getString("name"), rs.getString("email"));
88 }
89 rs.close();
90 stmt.close();
91 }
92 private static void updateUser() throws SQLException {
93 System.out.print("Enter user ID to update: "); int id
94 = Integer.parseInt(scanner.nextLine());
95 System.out.print("Enter new name: ");
96 String name = scanner.nextLine();
97 System.out.print("Enter new email: ");
98 String email = scanner.nextLine();
99 String sql = "UPDATE users SET name = ?, email = ? WHERE id = ?";
100 PreparedStatement stmt = con.prepareStatement(sql);
101 stmt.setString(1, name); stmt.setString(2, email);
102 stmt.setInt(3, id); int rows =
103 stmt.executeUpdate(); if (rows > 0) {
104 System.out.println("User updated successfully.");
105 } else {
106 System.out.println("User not found.");
107 }
108 stmt.close();
}
70 Page | 31
71
134
135
136
72 Page | 32
73
137
138
139 12 Screen shots of Real Time Research Project –
140 (Title)
141
74 Page | 33
75
142
143
144
145
76 Page | 34
77
146 Calculator.html
147 <!DOCTYPE html>
148 <html lang="en">
149 <head>
150 <meta charset="UTF-8">
151 <title>Simple Calculator</title>
152 <style>
153 body {
154 font-family: Arial, sans-serif;
155 background: #f4f4f4;
156 display: flex;
157 justify-content: center;
158 align-items: center;
159 height: 100vh;
160 }
161 .calculator {
162 background: white;
163 padding: 20px;
164 border-radius: 10px;
165 box-shadow: 0px 0px 10px #ccc;
166 width: 300px;
167 }
168 input[type="number"] {
169 width: 100%;
170 padding: 10px;
171 margin-bottom: 15px;
172 font-size: 1rem;
173 }
174 select, button {
175 width: 100%;
176 padding: 10px;
177 margin-bottom: 15px;
178 font-size: 1rem;
179 }
180 #result {
181 font-weight: bold;
182 font-size: 1.2rem;
183 text-align: center;
184 }
185 </style>
186 </head>
187 <body>
188
189 <div class="calculator">
190 <h2>Simple Calculator</h2>
191 <input type="number" id="num1" placeholder="Enter first number">
192 <input type="number" id="num2" placeholder="Enter second number">
193
194 <select id="operator">
195 <option value="+">Addition (+)</option>
196 <option value="-">Subtraction (-)</option>
197 <option value="*">Multiplication (*)</option>
78 Page | 35
79
80 Page | 36
81
238
82 Page | 37
83
239
240 Bootstrap-online-shopping.html
241 <!DOCTYPE html>
242 <html lang="en">
243 <head>
244 <meta charset="UTF-8">
245 <meta name="viewport"
246 content="width=device-width, initial-
247 scale=1">
248 <title>Online Shopping</title>
249 <link
250 href="https://cdn.jsdelivr.net/npm/bootstra
251 [email protected]/dist/css/bootstrap.min.css"
252 rel="stylesheet">
253 <style>
254 .product-card {
255 transition: transform 0.3s ease;
256 }
257 .product-card:hover {
258 transform: scale(1.05);
259 }
260 </style>
261 </head>
262 <body>
263 <!-- Navbar -->
264 <nav class="navbar navbar-expand-lg navbar-
265 dark bg-dark">
266 <div class="container-fluid">
267 <a class="navbar-brand"
268 href="#">ShopOnline</a>
269 <button class="navbar-toggler"
270 type="button" data-bs-toggle="collapse"
271 data-bs
272 target="#navbarNav">
273 <span
274 class="navbar-toggler-icon"></span>
275 </button>
276 <div class="collapse navbar-collapse
277 justify-content-end" id="navbarNav">
278 <ul class="navbar-nav">
279 <li class="nav-item">
280 <a class="nav-link active"
281 href="#">Home</a>
282 </li>
283 <li class="nav-item">
284 <a class="nav-link"
285 href="#">Products</a>
286 </li>
287 <li class="nav-item">
288 <a class="nav-link"
289 href="#">Cart</a>
290 </li>
84 Page | 38
85
291 </ul>
292 </div>
293 </div>
294 </nav>
295
296 <!-- Hero Banner -->
297 <div class="container-fluid bg-light p-5
298 text-center">
299 <h1>Welcome to ShopOnline</h1>
300 <p class="lead">Your one-stop shop for
301 everything!</p>
302 </div>
303
304 <!-- Product Grid -->
305 <div class="container py-4">
306 <div class="row row-cols-1 row-cols-md-3
307 g-4">
308 <!-- Product 1 -->
309 <div class="col">
310 <div class="card h-100 product-card">
311 <img
312 src="https://via.placeholder.com/300x200"
313 class="card-img-top" alt="Product 1">
314 <div class="card-body">
315 <h5 class="card-title">Product
316 Name 1</h5>
317 <p class="card-text">₹499</p>
318 <button class="btn btn-primary w-
319 100">Add to Cart</button>
320 </div>
321 </div>
322 </div>
323 <!-- Product 2 -->
324 <div class="col">
325 <div class="card h-100 product-card">
326 <img
327 src="https://via.placeholder.com/300x200"
328 class="card-img-top" alt="Product 2">
329 <div class="card-body">
330 <h5 class="card-title">Product
331 Name 2</h5>
332 <p class="card-text">₹799</p>
333 <button class="btn btn-primary w-
334 100">Add to Cart</button>
335 </div>
336 </div>
337 </div>
338 <!-- Product 3 -->
339 <div class="col">
340 <div class="card h-100 product-card">
86 Page | 39
87
341 <img
342 src="https://via.placeholder.com/300x200"
343 class="card-img-top" alt="Product 3">
344 <div class="card-body">
345 <h5 class="card-title">Product Name 3</h5>
346 <p class="card-text">₹1,299</p>
347 <button class="btn btn-primary w-100">Add
348 to Cart</button>
349 </div>
350 </div>
351 </div>
352 <!-- More products can be added similarly
353 -->
354 </div>
355 </div>
356 <!-- Footer -->
357 <footer class="bg-dark text-light text-
358 center p-3">
359 © 2025 ShopOnline. All rights
360 reserved.
361 </footer>
362 <script
363 src="https://cdn.jsdelivr.net/npm/bootstrap
364 @5.3.3/dist/js/bootstrap.bundle.min.js"></
365 script>
366 </body>
367 </html>
368
88 Page | 40
89
369
370
371
90 Page | 41