0% found this document useful (0 votes)
40 views11 pages

Name: Bishnu Rouniyar Reg. No: 20BCE2914 Sub: Web Security Lab Assessment-2 Code

Bishnu Rouniyar submitted Assessment-2 for the Web Security Lab course. The document contains HTML code defining two tables with different border styles. The first table uses separate borders for each cell. The second table uses collapsed borders so that all cells share a single border.

Uploaded by

Bishnu Rouniyar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views11 pages

Name: Bishnu Rouniyar Reg. No: 20BCE2914 Sub: Web Security Lab Assessment-2 Code

Bishnu Rouniyar submitted Assessment-2 for the Web Security Lab course. The document contains HTML code defining two tables with different border styles. The first table uses separate borders for each cell. The second table uses collapsed borders so that all cells share a single border.

Uploaded by

Bishnu Rouniyar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Name: Bishnu Rouniyar

Reg. No: 20BCE2914

Sub: Web Security Lab

Assessment-2

Code

<!DOCTYPE html>

<html>

<style>

table, th, td {

border:1px solid black;

</style>

<body>

<h2>TH elements define table headers</h2>

<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."›:

You might also like