Name: Bishnu Rouniyar Reg. No: 20BCE2914 Sub: Web Security Lab Assessment-2 Code
Name: Bishnu Rouniyar Reg. No: 20BCE2914 Sub: Web Security Lab Assessment-2 Code
Assessment-2
Code
<!DOCTYPE html>
<html>
<style>
table, th, td {
</style>
<body>
<table style="width:100%">
<tr>
<th>Person 1</th>
<th>Person 2</th>
<th>Person 3</th>
</tr>
<tr>
<td>Bishnu</td>
<td>Bikky</td>
<td>Sneha</td>
</tr>
<tr>
<td>18</td>
<td>19</td>
<td>18</td>
</tr>
</table>
<p>To undestand the example better, we have added borders to the table.</p>
<h2>Collapsed Borders</h2>
<p>If you want the borders to collapse into one border, add the CSS border-
collapse property.</p>
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Ayush</td>
<td>Sikha</td>
<td>50</td>
</tr>
<tr>
<td>Drisya</td>
<td>Arnav</td>
<td>94</td>
</tr>
<tr>
<td>Dipika</td>
<td>Diwesh</td>
<td>80</td>
</tr>
</table>
</body>
</html>
Output
[1.] Consider an application that allows the user to enter a list of integers as long as the
values are unique. If the user tends to enter a value which is already in the list, then the user
is not allowed to enter the values further with an error message stating that “Duplicate”.
Otherwise the message “Unique” is displayed. Write a JavaScript for given problem. Hint: IF –
ELSE and alert.
[2] STUDENT GRADE
3. BMI
are r ('noma ,e; ght."›: