Академический Документы
Профессиональный Документы
Культура Документы
LAB Evaluation
Name of Presence Date Conduction Writing of Checking Via VA Total Faculty
Experiment in the of Experiment of Marks Signature
practical Experiment Practical Practical
Copy copy
Expt. 1
Expt. 2
Expt. 3
Expt. 4
Expt.5
Expt. 6
Expt. 7
Expt. 8
Expt. 9
Expt. 10
Expt. 11
Expt. 12
Expt. 13
Expt. 14
Total
Sessional
Scored by
the Student
Page | 2
Web Development Lab Roll no. 16EGJCS738
List of Experiments
S. No. Experiments to be Conducted
Exp:- 1
Exp:- 2
Exp:- 3
Exp:- 4
Exp:- 5
Exp:- 6
Exp:- 7
Exp:- 8
Exp:- 9
Exp:-10
Exp:-11
Exp:-12
Page | 3
Web Development Lab Roll no. 16EGJCS738
Page | 4
Web Development Lab Roll no. 16EGJCS738
Page | 5
Web Development Lab Roll no. 16EGJCS738
Experiment 1
Q. 1 What is HTML. Explain popular tags used in web page designing.
Ans. – The definition of HTML is Hyper Text Markup Language. Hypertext is the method
by which you move around the web by clicking on the special links called hyperlink.
Markup is what the HTML tags do to the text inside in them.
HTML tag: It is the root of the html document which is used to specify that the
document is html.
Head tag: Head tag is used to contain all the head element in the html file. It
contains the title, style, meta, … etc tag.
Body tag: It is used to define the body of html document. It contains image, tables,
lists, … etc.
Title tag: It is used to define the title of html document.
Q. 2 Differentiate Client side scripting and server side scripting with the help of
example.
Ans. - Server-side scripting is a technique of programming for producing the code which
can run software on the server side, in simple words any scripting or programming that can
run on the web server is known as server-side scripting. The operations like customization
of a website, dynamic change in the website content, response generation to the user’s
queries, accessing the database, and so on are performed at the server end.
Client-side scripting is performed to generate a code that can run on the client end
(browser) without needing the server side processing. Basically, these types of scripts are
placed inside an HTML document. The client-side scripting can be used to examine the
user’s form for the errors before submitting it and for changing the content according to the
user input.
1. Open Notepad(PC).
2. Write some HTML code in the following format.
Page | 6
Web Development Lab Roll no. 16EGJCS738
Q. 4 Assignment 1 – It has 3 tasks, you have to write the code and output snapshot
after each task.
Task 1 – Design the below page with the help of HTML. (Sample output)
Sol. –
<html>
<head>
<title>Task 1</title>
</head>
<body>
Page | 7
Web Development Lab Roll no. 16EGJCS738
<ol type="I">
<li>USA
<ol type="a">
<li>Detroit</li>
<li>Seatlle</li>
</ol>
</li>
<li>Norway
<ol type="a">
<li>Oslo</li>
<li>Trondheim</li>
</ol>
</li>
<li>Italy
<ol type="a">
<li>Rome</li>
<li>Venize</li>
</ol>
</li>
</ol>
</body>
</html>
Page | 8
Web Development Lab Roll no. 16EGJCS738
Task 2 Design the below page with the help of HTML. Create Page1, Page2,
Page3 to link below page. Add relevant information to the pages.
Sol. –
Main Page:
<html>
Page | 9
Web Development Lab Roll no. 16EGJCS738
<head>
<title>Task 2</title>
</head>
<body>
</body>
</html>
Page 1:
<html>
<head>
<title>Task 2</title>
</head>
<body>
</body>
</html>
Page | 10
Web Development Lab Roll no. 16EGJCS738
Page 2 :
<html>
<head>
<title>Task 2</title>
</head>
<body>
</body>
</html>
Page 3 :
<html>
<head>
<title>Task 2</title>
</head>
<body>
Page | 11
Web Development Lab Roll no. 16EGJCS738
</body>
</html>
6. An ordered list of 3 items in the third paragraph. All the text should be in italics
Page | 12
Web Development Lab Roll no. 16EGJCS738
7. Go back to step 4 and add another list item which will be a link. Create a link with the
text Here's the link to my favourite website. Make sure that the link directs users
to your favourite website
8. After Paragraphs 5, insert an image of your choice and make it hyperlink (clickable)
to relevant website.
9. At the end of the main body text, use the appropriate character entity to include a
copyright symbol with your name, roll no., branch and year.
Sol. <html>
<head>
<title>Task 3</title>
</head>
<body>
<p>
<h2>Paragraph 1</h2>
<h3>Colours</h3>
<ul>
<li>Black</li>
<li>White</li>
<li>Red</li>
</ul>
</p>
<p>
<h2>Paragraph 2</h2>
Page | 13
Web Development Lab Roll no. 16EGJCS738
</p>
<p>
<h2>Paragraph 3</h2>
<h3>Colours</h3>
<i><ul>
<li>Black</li>
<li>White</li>
<li>Red</li>
</ul>
</i>
</p>
<p>
<h2>Paragraph 4</h2>
</p>
<p>
<h2>Paragraph 5</h2>
</p>
"width:300px;height:300px"></a>
Page | 14
Web Development Lab Roll no. 16EGJCS738
<br>
</body>
</html>
Experiment 2
Assignment 1 -Create the following structure of tables and form with the help of
HTML. Write the solution code and output snapshot of the following task.
Task 1
Page | 15
Web Development Lab Roll no. 16EGJCS738
Sol –
<html>
<head>
<style>
table,th,td{
border-collapse:collapse;
width:60%;
tr,th,td{
text-align:center;
padding:20px;
</style>
</head>
<body>
<table>
<tr>
<th style="background-color:green;color:white;">Name</th>
Page | 16
Web Development Lab Roll no. 16EGJCS738
<th style="background-color:green;color:white;">Age</th>
<thcolspan=2 style="background-color:green;color:white;">Location</th>
</tr>
<tr>
<td rowspan=2>Aziz</td>
<td rowspan=2>26</td>
<td>Chicago</td>
<td>IL</td>
</tr>
<tr>
<td>San Diego</td>
<td>CA</td>
</tr>
<tr>
<td>Jen</td>
<td>40</td>
<td>New York</td>
<td>IL</td>
</tr>
<tr>
<td>Jorden</td>
<td>30</td>
Page | 17
Web Development Lab Roll no. 16EGJCS738
<td>London</td>
<td>LK</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
Task 2
Sol –
<html>
Page | 18
Web Development Lab Roll no. 16EGJCS738
<title>Table2</title>
<style>
table,tr,td,th{
border-collapse: collapse;
text-align:center;
padding:10px;
</style>
</head>
<body>
<th>
<td>Monday</td>
<td>Tuesday</td>
<td>Wednesday</td>
<td>Thursday</td>
<td>Friday</td>
</th>
<tr>
<td>1:00</td>
<td></td>
Page | 19
Web Development Lab Roll no. 16EGJCS738
</tr>
<tr>
<td>1:30</td>
</tr>
<tr>
<td>2:00</td>
</tr>
<tr>
<td>2:30</td>
<td></td>
</tr>
<tr>
<td>3:00</td>
</tr>
<tr>
<td>3:30</td>
</tr>
<tr>
Page | 20
Web Development Lab Roll no. 16EGJCS738
<td>4:00</td>
</tr>
<tr>
<td>4:30</td>
<td></td>
</tr>
</table>
<br>
</body>
</html>
Task 3
Page | 21
Web Development Lab Roll no. 16EGJCS738
Sol –
<html>
<title>Table3</title>
<style>
table,tr,td,th{
border-collapse: collapse;
text-align:center;
</style>
</head>
<body>
<tr>
<td rowspan=3><b>Day</b></td>
<td colspan=3><b>Seminar</b></td>
</tr>
<tr>
<td colspan=2><b>Schedule</b></td>
Page | 22
Web Development Lab Roll no. 16EGJCS738
</tr>
<tr>
<td><b>Begin</b></td>
<td><b>End</b></td>
</tr>
<tr>
<td>Introduction to xml</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
Page | 23
Web Development Lab Roll no. 16EGJCS738
</tr>
<tr>
</tr>
<tr>
<td>Wednesday</td>
</tr>
</table>
<br>
</body>
</html>
Task 4
Page | 24
Web Development Lab Roll no. 16EGJCS738
Sol. –
<!DOCTYPE html>
<html>
<head>
<title>16EGJCS738</title>
</head>
<body >
</div>
Page | 25
Web Development Lab Roll no. 16EGJCS738
</div>
</center>
</body>
</html>
Page | 26
Web Development Lab Roll no. 16EGJCS738
Experiment 3
Assignment 1- Create the following registration page with the help of HTML
Task 1
Sol-
<html>
<form align="center">
<table>
<tr>
Page | 27
Web Development Lab Roll no. 16EGJCS738
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<label><td>Gender</td>
<td><input type="radio">Male
<input type="radio">Female</td>
</label>
</tr>
<tr>
</tr>
<tr>
<label><td>Country</td>
<td><input list="countries">
Page | 28
Web Development Lab Roll no. 16EGJCS738
<datalist id="countries">
<option value="india">
<option value="australia">
<option value="england">
<option value="russia">
</datalist></td>
</label>
</tr>
<tr>
<td>Hobbies</td>
<td>
<input type="checkbox">Drawing
<input type="checkbox">Singing
<input type="checkbox">Dancing
<input type="checkbox">Cycling
</td>
</tr>
<tr>
<td>
<table>
<tr>
<th>S.No.</th>
<th>Examination</th>
<th>Board</th>
<th>Percentage</th>
Page | 29
Web Development Lab Roll no. 16EGJCS738
<th>Year Of Passing</th>
</tr>
<tr>
<td>1.</td>
<td>Class X</td>
<td><input type="text"></td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
<tr>
<td>2.</td>
<td>Class XII</td>
<td><input type="text"></td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
<tr>
<td>3.</td>
<td>Graduation</td>
<td><input type="text"></td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
<tr>
<td>4.</td>
<td>Masters</td>
Page | 30
Web Development Lab Roll no. 16EGJCS738
<td><input type="text"></td>
<td><input type="text"></td>
<td><input type="text"></td>
</tr>
</table>
</td>
</table>
</div>
</form>
</body>
</html>
Page | 31
Web Development Lab Roll no. 16EGJCS738
Assignment 2 –
Task 1
Page | 32
Web Development Lab Roll no. 16EGJCS738
Sol- Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language like HTML. A CSS file has
extention .css and internet media type is text/css.CSS is designed to enable the sepration of
presentation and content, including layout, colors and fonts.
Types of css:
Inline CSS
Internal or Embedded CSS
External CSS
Inline CSS: Inline CSS contains the CSS property in the body section attached with
element is known as inline CSS. This kind of style is specified within an HTML tag using
style attribute.
Internal or Embedded CSS: This can be used when a single HTML document must be
styled uniquely. The CSS rule set should be within the HTML file in the head section i.e the
CSS is embedded within the HTML file.
External CSS: External CSS contains separate CSS file which contains only style property
with the help of tag attributes (For example class, id, heading, … etc). CSS property written
in a separate file with .css extension and should be linked to the HTML document
using link tag. This means that for each element, style can be set only once and that will be
applied across web pages.
Task 2
Sol-
Page | 33
Web Development Lab Roll no. 16EGJCS738
1. <style type=”text/css”>
Opening of style tag in which type attribute is used.The value "text/css"
indicates that the content is CSS.
2. h1
h1 is a tag in html. Here h1 indicates that above design formatting is applied
to h1 tag.
3. {
Opening braces.
4. Color: #cd5c5c;
The "color" propertyspecifies the color of the text for the h1. #cd5c5c is
color code
5. Font-size: 14px;
in css font family is used to change the type of font. Verdana and sans-serif
are type of font.
7. Text-transform:uppercase;
It is used to change the text in uppercase,lowercase,titlecase or camelcase.
8. }
Closing braces.
9. /*my css code*/
Comment in css code. “/*” opening and “*/” closing of comment.
10. </style>
Ending of style tag.
Page | 34
Web Development Lab Roll no. 16EGJCS738
<html>
<head>
<style>
table{
border-collapse: collapse;
width:400px;
height:600px;
.a{
.b{
Page | 35
Web Development Lab Roll no. 16EGJCS738
#x{
background-color:skyblue;
height:120px;
#y{
background-color:orange;
height=40px;
#z{
height=60px;
background-color:skyblue;
</style>
</head>
<body>
<Table>
<tr><td colspan=3 id="x"></td></tr>
<tr><td colspan=3 id="y"></td></tr>
<tr><td rowspan=3 class="a"></td>
<td class="b"></td>
<td rowspan=3 class="a"></td></tr>
<tr><td height="150" width="180"></td></tr>
Page | 36
Web Development Lab Roll no. 16EGJCS738
<tr><td class="b"></td></tr>
<tr><td colspan=3 id="z"></td></tr>
</table>
</body>
</html>
Page | 37
Web Development Lab Roll no. 16EGJCS738
Page | 38
Web Development Lab Roll no. 16EGJCS738
<html>
<head>
<style>
#a{
width: 300px;
height: 50px;
color:yellow; }
#b{
width: 300px;
height: 30px;
color:yellow; }
#c{
width: 170px;
height: 150px;
color:orange; }
#d{
Page | 39
Web Development Lab Roll no. 16EGJCS738
width: 80px;
height: 150px;
color:orange; }
#e{
width: 80px;
height: 100px;
color:orange; }
#f{
width: 80px;
height: 100px;
color:orange; }
#g{
height: 30px;
color:yellow; }
</style>
</head>
<body>
<Table>
<tr>
<td id="a" style="Background-color:brown;" colspan=2>
<header><header></header>
</td></tr>
<tr>
<td id="b" style="Background-color:darkmagenta;" colspan=2>
<nav><nav><nav>
</td></tr>
<tr>
<td id="c" style="Background-color:lawngreen;">
<article><article></article>
</td>
<td id="d" style="Background-color:darkcyan;">
Page | 40
Web Development Lab Roll no. 16EGJCS738
<Section><section></Section></td>
</tr>
<tr>
<td id="e" style="Background-color:lawngreen;">
<article><article></article></td>
<td id="f" style="Background-color:blue;">
<aside><aside></td>
</tr>
<tr><td colspan=2 style="Background-color:green;">
<footer id="g"><footer></footer>
</td></tr>
</table>
</body>
</html>
Page | 41
Web Development Lab Roll no. 16EGJCS738
………………………………………………………………………………………………
<html>
<head> LAYOUT
<style> table,tr,td
width: 250px;
height: 90px;
</style>
</head>
<body>
<Table>
Page | 42
Web Development Lab Roll no. 16EGJCS738
<tr><td> </td>
<td> </td>
<td> </td></tr>
</Table>
</body>
</html>
Page | 43