Professional Documents
Culture Documents
(MBA 151)
PRACTICAL FILE
Enrolment No:
05716688521
Practical – 1
Create a HTML file using
Header Tags. Code:
<!DOCTYPE html>
<html>
<head>
<title>Header Tag</title>
</head>
<body>
<header>
</header>
</body>
</html>
Output
Practical – 2
Create a HTML file using
Formatting Tags. Code:
<!DOCTYPE html>
<html>
<head>
<title>Formatting Tags</title>
</head>
<body>
<div class="container">
<p><b>My Self Aashish Malik.</b></p>
<p><i>I enrolled for MBA.</i></p>
<p>In this code file, i am using <u>formatting tags.</u> </p>
<p>I am Doing <sub>MBA</sub> From <mark>IP University.</mark></p>
<p><sup>IP University</sup> - Indraprastha University</p>
<p>Enrolment Number - <mark>XXXX XXX XX</mark></p>
</div>
</body>
</html>
Output
Practical – 3
Create a HTML file where you have used IFRAME Tag. Code:
<!DOCTYPE html>
<html>
<head>
<title>Iframe Tag</title>
</head>
<body>
<div class="container">
<p><b>My Self Aashish Malik.</b></p>
<p>In this code file, i am using iframe. <mark>Below is a iframe of
map</mark>. </p>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!
1m3!1d448183.7390930067!2d76.81307038634928!3d28.646677254552095!2m3!1f0!2f0!3f0!3m2!
1i1024!2i768!4f13.1!3m3!1m2!1s0x390cfd5b347eb62d%3A0x37205b715389640!2sDelhi!5e0!3m2!
1sen!2sin!4v1648104756492!5m2!1sen!2sin" width="650" height="450" style="border:0;"
allowfullscreen="" loading="lazy"></iframe>
</div>
</body>
</html>
Output
Practical – 4
Create a HTML file where you have used DIV, FONT and SPECIAL
CHARACTER Tags. Code:
<!DOCTYPE html>
<html>
<head>
<title>Special Character DIV Tags</title>
</head>
<body>
<div class="container">
<p>My Self Aashish Malik.</p>
<p>I enrolled for MBA.</p>
<p style="font-family:verdana">In this code file, i am using <u>formatting
tags.</u> </p>
<p>I am Doing MBA From IP University ® .</p>
<p>IP University - Indraprastha University © </p>
<p style="font-family:verdana">Enrolment Number - XXXX XXX XX</p>
</div>
</body>
</html>
Output
Practical – 5
Create a HTML file
<html>
<head>
<title>PK Q5</title>
<style>
table {
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
body{
background-color:red;
}
</style>
</head>
<body>
<tr>
</tr>
<tr>
<td >PM</td>
<td>Ex-PM</td>
<td>CM</td>
</tr>
</table>
</body>
</html>
Output
Practical – 6
Create a HTML file
<html>
<head>
<title>PK Q6</title>
</head>
<body style ="text-align:center">
<h1>Hello World</h1>
<h2>Hello World</h2>
<h3>Hello World</h3>
<h4>Hello World</h4>
<h5>Hello World</h5>
<h6>Hello World</h6>
<h5>Hello World</h5>
<h4>Hello World</h4>
<h3>Hello World</h3>
<h2>Hello World</h2>
<h1>Hello World</h1>
</body>
</html>
Output
Practical – 7
Create a HTML file
<html>
<head>
<title>PK Q7</title>
<style>
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<th ><img src="modi.jpg" align="left" height=200 width=150 ></th>
<th></th>
<th></th>
</tr>
<tr>
<td ></td>
<td><img src="manmohan.jpg" class="center" height=200 width=150></td>
<td></td>
</tr>
<tr>
<th ></th>
<th></th>
<th><img src="kejriwal.jpg" align="right" height=200 width=150></th>
</tr>
</table>
</body>
</html>
Output
Practical – 8
Create a HTML file
<html>
<head>
<title>PK Q8</title>
<style>
table {
border-collapse: collapse;
}
th, td{
padding-left: 25px;
padding-right: 25px;
padding-top: 5px;
padding-bottom: 5px;
text-align:center;
}
</style>
</head>
<body>
</body>
</html>
Output
Practical – 9
Create a HTML file
<html>
<head>
<title>PK Q9</title>
<style>
label{
width:180px;
float:left;
text-align:right
}
body {background-color: #d7d7c1;}
</style>
</head>
<body>
<div style="width:60%; margin:auto; background-color:white" >
<div style="background-color:red; color:white"><b style="margin-left:20; font-
size:40">JobSearch</b><b style="font-size:19">.com</b></div>
<h3 style = "margin-left:20">Create Your Account</h3>
<h5 style = "margin-left:20; color:red">*Request Information</h5>
</div>
</div>
<div align="center">
</div>
</body>
</html>
Output
Practical – 10
Create a HTML file
<html>
<head>
<title>PK Q10</title>
<style>
label{
width:180px;
float:left;
text-align:right
}
</style>
</head>
<body>
<form>
<div style="width:500px">
<div style="background-color:#F58548; color:yellow"><b style="margin:9; font-size:25">Sign
Up</b></div>
</table>
</div>
</body>
</html>
Output
Practical – 12
Create a HTML file
<html>
<head>
<title>PK Q12</title>
<style>
label{
width:150px;
float:left
}
</style>
</head>
<body>
<form>
<h1>The Coffee House</h1>
<h3>Order Form</h3>
<label for="coffee" >Coffee:</label>
<select name="coffee" id="coffee" value="Select Coffee">
<option value="NA">Select Coffee:</option>
<option value="Cappuccino">Cappuccino</option>
<option value="Latte">Latte</option>
<option value="Americano">Americano</option>
</select>
<br>
<label for="type" >Type:</label>
<div>
<input type="radio" id="type" name="type" value="Regular">Regular
<!--br not working here inside div-->
<input type="radio" id="type" name="type" value="Decaffeinated">Decaffeinated
</div>
<br>
<label for="quantity" >Quantity (in pounds):</label>
<input type="number" id="quantity" name="quantity" size ="20"><!--width or size not working-->
<br>
<label for="name" >Name:</label>
<input type="text" id="name" name="name" >
<br>
<label for="email" >Email Address:</label>
<input type="email" id="email" name="email" >
<br>
<label for="phone" >Telephone#:</label>
<input type="number" id="phone" name="phone" >
<br>
<label for="address" >Address:</label>
<input type="text" id="address" name="address" >
<br>
<label for="city" >City:</label>
<input type="text" id="city" name="city" >
<br>
<label for="state" >State:</label>
<input type="text" id="state" name="state" >
<br>
<label for="zip" >Zip:</label>
<input type="number" id="zip" name="zip" >
<br>
</html>
Output
Practical – 13
Create a HTML file
<html>
<head>
<title>PK Q13</title>
<style>
table {
border-collapse: collapse;
}
th, td{
padding-left: 2px;
padding-right: 20px;
padding-top: 4px;
padding-bottom: 4px;
}
</style>
</head>
<body>
<div style="background-color:#e1e3e2; display:inline-block; width:60%" >
<table border="2px" style="width:100%">
<tr>
<th colspan="5">Commmandy Courses -- Both Autumn 1997</th>
</tr>
<tr>
<td style="text-align:center; width:25%"><b>Course Name</b></td>
<td style="text-align:center; width:20%"><b>Course Tutor</b></td>
<td style="text-align:center; width:39%"><b>Summary</b></td>
<td style="text-align:center; width:8%"><b>Code</b></td>
<td style="text-align:center; width:8%"><b>Fee</b></td>
</tr>
<tr>
<td>Alter the Civil War</td>
<td>Dr. John Wrongton</td>
<td>The course will <em>examine the cobulent years in England</em> after 1946. <em>6
weekly meetings starting Monday 13th October.</em></td>
<td>H27</td>
<td>€32</td>
</tr>
<tr>
<td>An Introduction to Anglo-S'axoa England</td>
<td>Mark Cottle</td>
<td>One day course introducing the early medieval period reconstruction the Anglo-Sazons
and their society. <em>Saturday 18th October.</em></td>
<td>H28</td>
<td>€18</td>
</tr>
<tr>
<td>The Glory that was Greece</td>
<td>Valeria Lorenz</td>
<td>Birthplace of <em>democracy, philosophy, heartland</em> of theatre,
<em>home</em> of argument. The Romans may have done it but the Greeks did it first.
<em>Saturday Day School 25th October 1997.</em> </td>
<td>H30</td>
<td>€18</td>
</tr>
</table>
</div>
</body>
</html>
Output
Practical – 14
Create a HTML file
<html>
<head>
<title>PK Q14</title>
<style>
table{
width:50%;
}
tr{
background-color:#9dcfeb;
}
td{
padding-left:15px;
padding-right:15px;
}
input, textarea, select, button{
background-color:#daebf5;
}
</style>
</head>
<body>
</table>
</body>
</html>
Output
Practical – 15
Create a HTML file
<html>
<title>
SignUp
</title>
<style>
body
{
background-color: #caf78f;
color: black;
font-family: "Comic Sans MS";
}
</style>
<body>
<fieldset style="background-color:#65f787">
<table>
<form name="f1" action= method=>
<legend style="text-align:center"> USER FORM</legend>
<tr>
<td>
<label name="l">• FIRST NAME </label>
</td>
<td>
<input type="text" name="t1">
<br>
</td>
</tr>
<tr>
<td>
<label name="l">• PASSWORD </label>
</td>
<td>
<input type="password" name="t1">
<br>
</td>
</tr>
<tr>
<td>
<label name="10">• GENDER </label>
</td>
<td>
<input type="radio" name="t11"> Male
<input type="radio" name="t11"> Female
<br>
</td>
</tr>
<tr>
<td>
<label name="11">• ADDRESS </label>
</td>
<td>
<textarea rows=10 cols=30 wrap=off name="t9">
</textarea>
</td>
</tr>
<tr>
<td>
<label name="2">• D.O.B </label>
</td>
<td>
<input list="t21" placeholder="Month" style="text-align:left" size=5>
<datalist id="t21">
<option value="Jan"><option value="Feb"><option
value="Mar"><option value="Apr"><option value="May"><option value="Jun"><option
value="Jul"><option value="Aug"><option value="Sep"><option value="Oct">
<option value="Nov"><option value="Dec">
</datalist>
</td>
</tr>
<tr>
<td>
<label name="3">• SELECT GAMES</label>
</td>
<td>
<input type="checkbox">
<label name="t4"> Hockey </label>
<input type="checkbox">
<label name="t4"> Football </label>
<input type="checkbox">
<label name="t4"> Cricket </label>
<input type="checkbox">
<label name="t4"> Volleyball </label>
</td>
</tr>
<tr>
<td>
<label name="10">• MARITAL STATUS </label>
</td>
<td>
<input type="radio" name="t11"> Married
<input type="radio" name="t11"> Un Married
<br>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit"">
<input type="reset">
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="checkbox">
<label name="t4"> I accept this agreement </label>
</td>
</tr>
</form>
</table>
</fieldset>
</body>
</html>
Output
Practical – 16
Create a HTML file
Create a HTML file Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled
Document</title>
<style type="text/css">
.ag {
text-align: center; }
</style> </head>
<body>
<table width="768">
<tr>
<td colspan="2" bgcolor="#FFFF00" class="ag"><blockquote>
<p>Feedback form of MBA student</p> </blockquote></td>
</tr> <tr>
<td width="310" bgcolor="#FFFF00">Enter First Name</td>
<td width="446" bgcolor="#FFFF00"><input name="textfield17" type="text" id="textfield17"
value="Enter Your First Name" /></td>
</tr> <tr>
<td bgcolor="#FFFF00">Enter Password</td>
<td bgcolor="#FFFF00"><input type="text" name="textfield16" id="textfield16" /></td> </tr>
<tr>
<td bgcolor="#FFFF00">Enter Gender </td> <td bgcolor="#FFFF00"><label>
<tr>
<td bgcolor="#FFFF00"><input name="textfield" type="text" id="textfield" /></td> <td
bgcolor="#FFFF00"> </td>
</tr> <tr>
<td bgcolor="#FFFF00"><label>
<input name="textfield2" type="text" id="textfield2" value="mm/dd/yyyy" />
</label></td>
</label></td>
<td bgcolor="#FFFF00"> </td>
</tr> <tr>
<td bgcolor="#FFFF00"><label>
<input type="text" name="textfield8" id="textfield8" />
</label></td>
<td bgcolor="#FFFF00"> </td> </tr>
<tr>
<td bgcolor="#FFFF00"><label>
<input type="file" name="fileField" id="fileField" />
</label></td>
<td bgcolor="#FFFF00"> </td> </tr>
<tr>
<td bgcolor="#FFFF00"><label>
<input name="textfield10" type="text" id="textfield10" value=" " />
</label></td>
<td bgcolor="#FFFF00"> </td> </tr>
<tr>
<td bgcolor="#FFFF00">Enter Your City </td> <td bgcolor="#FFFF00"><label>
<select name="select" id="select"> <option>Delhi </option> <option>UP</option>
<option>Bihar</option> <option>Hariyana</option> <option>Punjab</option>
</select> </label></td>
</tr> <tr>
<td bgcolor="#FFFF00"><label>
Output
Practical – 17
Create a HTML file
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</tr> <tr>
<td bgcolor="#FFFF00"><span class="ag">Sanjib</span></td>
<td bgcolor="#FFFF00"><span class="ag">46</span></td>
<td bgcolor="#FFFF00"><span class="ag">Delhi</span></td>
<td bgcolor="#FFFF00"><span class="ag">9996795432</span></td>
</tr> <tr>
<td bgcolor="#00CC33"><span class="ag">Sanjib</span></td>
<td bgcolor="#00CC33"><span class="ag">46</span></td>
<td bgcolor="#00CC33"><span class="ag">Delhi</span></td>
</html>
Output
Practical – 18
Create a HTML file
i Create an ordered and unordered list of your choice.
Code i
<html>
<body>
<h4>An Unordered List:</h4>
<ul>
<li>AC</li>
<li>TV</li>
<li>Refrigerator</li>
</ul>
<h4>An Ordered List:</h4>
<ol>
<li>AC</li>
<li>TV</li>
<li>Refrigerator</li>
</ol>
</body>
</html>
Code ii a & b
<html>
<body>
<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><big>This text is big</big></p>
<p><em>This text is emphasized</em></p>
<p><i>This text is italic</i></p>
<p><small>This text is small</small></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>
Output
Code ii c
<html>
<body>
<a href="http://www.youtube.com">Youtube</a>
<p><a href="http://www.ipu.ac.in/">IPU Website</a></p>
<p><a href="http://www.yahoo.com">Yahoo</a></p>
</body>
</html>
Output
Code iii
<html>
<body>
<h4>A Definition List:</h4>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
<h4>An Ordered List:</h4>
<ol>
<li>AC</li>
<li>TV</li>
<li>Refrigerator</li>
</ol>
</body>
</html>
Output
Code iv
<html>
<body>
<h4>An Unordered List:</h4>
<ul>
<li>AC</li>
<li>TV</li>
<li>Refrigerator</li>
</ul>
<h4>A Definition List:</h4>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</body>
</html>
Output
Code v
First.html
<html>
<body>
</body>
</html>
Second.html
<html>
<body>
</body>
</html>
Output
Code vi
<html>
<body>
<a href="#first">first</a>
<a href="#second">second</a>
<div id='first'>
<p>First Section</p>
</div>
<br><br><br>
<div id='second'>
<p>Second Section</p>
</div>
</body>
</html>
Output
Code Vii
<html>
<head>
<title>PK Q18 vii</title>
<style>
table {
border-collapse: collapse;
width:300px;
}
</style>
</head>
<body>
<table border="2px" >
<tr>
<th >EmpNo</th>
<th >EmpName</th>
<th >Designation</th>
</tr>
<tr>
<td >1111</td>
<td >Rakesh</td>
<td rowspan="2">Manager</td>
</tr>
<tr>
<td >2222</td>
<td >Suresh</td>
</tr>
</table>
</body>
</html>
Output
Code viii
<html>
<head>
<title>PK Q18 viii</title>
<style>
table {
border-collapse: collapse;
width:300px;
}
</style>
</head>
<body>
<table border="2px" >
<tr>
<td >CELL1</td>
<td colspan="2">Cell Spans 2 columns</td>
</tr>
<tr>
<td >CELL1</td>
<td >CELL2</td>
<td >CELL3</td>
</tr>
</table>
</body>
</html>
Output
Code ix
<html>
<html>
<head>
</head>
<body>
<h3>Course Content Feedback Form</h3>
<form>
<label>Student Name: </label>
<input type="text" name="Name">
<br>
<label>Student Section: </label>
<label>A</label>
<input type="radio" name="Section" value="A">
<label>B</label>
<input type="radio" name="Section" value="B">
<label>C</label>
<input type="radio" name="Section" value="C">
<br>
<label>Course Name: </label>
<input list="Course">
<datalist id="Course">
<option value="MBA">
<option value="B.Tech">
</datalist>
<br>
<label>Feedback: </label>
<input list="Feedback">
<datalist id="Feedback">
<option value="1">
<option value="2">
<option value="3">
<option value="4">
<option value="5">
</datalist>
</form>
</body>
</html>
Output
Practical – 19
Write SQL Query:-
Display average salary of employees having salary greater than 500 from emp table.
Practical – 20
Write SQL Query
Display the department no and total no of employees from emp table and group them by
department number.
Practical – 21
Write SQL Query Display the total salary from emp table where department no is either 10 or
20.
Practical – 22
Write SQL Query
Display dept no and total salary from emp table where job is not equals to salesman and employee
having total salary greater than 6000.
Practical – 23
Write SQL Query
Display dept no and total number of job in emp table and group them by deptno.
Practical – 24
Write SQL Query
Display second maximum salary from emp table.
Practical – 25
Write SQL Query
Create a table newdept.
Practical – 26
Write SQL Query
Alter table empdata and add primary constraint on employee id.
Practical – 27
Write SQL Query
Insert values in empdata table with values where input is from keyboard.
Practical – 28
Write SQL Query
Create a copy of existing table emp without data.
Practical – 29
Write SQL Query
Append a string “_emp” on employee name and display all the employees with appended name.
Practical – 30
Write SQL Query
Trim the string from the right and display the trimmed name from emp table.
Practical – 31
Write SQL Query
Display the name of employees in uppercase from emp table.
Practical – 32
Write SQL Query
Display the name of employees in lowercase from emp table .
Practical – 33
Write SQL Query
Display the length of employee name from emp table.
Practical – 34
Write SQL Query
Display the first two letters of employee name from emp table.
Practical – 35
Write SQL Query
Display the first two letters of employee name from emp table where length of emp name is greater
than 4.
Practical – 36
Write SQL Query
Find the position of first letter “A” in all the employee names in emp table.
Practical – 37
Write SQL Query
Find the second occurrence of A in ename in emp table.
Practical – 38
Write SQL Query
Display the emp name from emp. table where sound of employee name likes “JOHNS”.