ST Lab Manual
ST Lab Manual
LAB MANUAL
(Semester – II)
Student Name :
Branch :
Academic Year :
Krishna School of Emerging Technology
& Applied Research
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Practical 2</title>
</head>
<body>
<table border = "1" height = "50" width = "50%">
<tr>
<td colspan="4" align="center">India</td>
</tr>
<tr>
<td rowspan="2" align="center">Australia</td>
<td colspan="2" align="center">USA</td>
<td align="center">Spain</td>
</tr>
<tr>
<td align="center">Switzerland</td>
<td align="center">Italy</td>
<td rowspan="2" align="center">Japan</td>
</tr>
<tr>
<td align="center">China</td>
<td align="center">Myanmar</td>
<td align="center">South Korea</td>
</table>
Background Properties:
Property Name Description
background-color The background-color property
specifies the background
color of an element.
Margins:
Property Name Description
margin-top CSS has properties for
margin-right specifying the margin for
margin-bottom each side of an element
margin-left
Paddings:
Property Name Description
padding-top CSS has properties for
padding -right specifying the padding for
padding -bottom each side of an element
padding -left
Links:
Property Name Description
a:link a normal, unvisited link
a:visited a link the user has visited
a:hover a link when the user mouses
over it
a:active a link the moment it is
clicked
Display:
Property Name Description
display The display property
displays the content on
browser.
Visibility The visibility property sets
the visibility of the
content
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Practical 6</title>
</head>
<link rel="stylesheet" href="6.css">
<body>
<div class="container">
<div class="box"><img src="ana-de-armas.jpg"></div>
<div class="box"><img src="chris-
hemsworth.jpg"></div>
<div class="box"><img src="angelina-
jolie(1).jpg"></div>
<div class="box"><img src="tom-ellis.jpg"></div>
<div class="box"><img src="chloe-grace.jpg"></div>
</div>
</body>
</html>
CSS:
body { background-color: #161616;}
img
{
border-radius: 8px;
transition: 1.2s;
-webkit-filter: grayscale(1);
-webkit-transition: 1.2s;
}
.container {
display:flex;
width: 640px;
height: 640px;
margin-top: 75px;
1 0 1
0 1 0 1
1 0 1 0 1
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Practical 10</title>
</head>
<body>
</body>
<script src="10.js"></script>
</html>
JS:
var i, j, s;
for(i=1;i<=5;i++)
{
for(j=i;j<5;j++)
{
document.write("   ");
}
for(s=1;s<=i;s++)
{
if((i+s)%2==0)
{
document.write("  1  ");
}
else
Output:
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Practical 13</title>
</head>
<link rel="stylesheet" href="13.css">
<body>
<div class="main">
<form align="center" name="f1" onsubmit="return form() &&
CheckPassword(document.f1.pwd)">
<p>Name<br>
<input type="text" name="nm" id="name">
</p>
<p>Phone No.<br>
<input type="number" name="ph" id="ph">
</p>
<p>Birth date<br>
<input type="date" name="bd" id="bd">
</p>
<p>Pin code<br>