WD Lab Manual
WD Lab Manual
WD Lab Manual
Certificate
Place:
Date:
Preface
Main motto of any laboratory/practical/field work is for enhancing required skills as well as
creating ability amongst students to solve real time problem by developing relevant
competencies in psychomotor domain. By keeping in view, GTU has designed competency
focused outcome-based curriculum for engineering degree programs where sufficient
weightage is given to practical work. It shows importance of enhancement of skills amongst the
students and it pays attention to utilize every second of time allotted for practical amongst
students, instructors and faculty members to achieve relevant outcomes by performing the
experiments rather than having merely study type experiments. It is must for effective
implementation of competency focused outcome-based curriculum that every practical is
keenly designed to serve as a tool to develop and enhance relevant competency required by the
various industry among every student. These psychomotor skills are very difficult to develop
through traditional chalk and board content delivery method in the classroom. Accordingly, this
lab manual is designed to focus on the industry defined relevant outcomes, rather than old
practice of conducting practical to prove concept and theory.
By using this lab manual students can go through the relevant theory and procedure in advance
before the actual performance which creates an interest and students can have basic idea prior
to performance. This in turn enhances pre-determined outcomes amongst students. Each
experiment in this manual begins with competency, industry relevant skills, course outcomes
as well as practical outcomes (objectives). The students will also achieve safety and necessary
precautions to be taken while performing practical.
This manual also provides guidelines to faculty members to facilitate student centric lab
activities through each experiment by arranging and managing necessary resources in order
that the students follow the procedures with required safety and necessary precautions to
achieve the outcomes. It also gives an idea that how students will be assessed by providing
rubrics.
In the era of digitization, the demand of Internet based applications is increasing day by day.
Web Development is one of the required skills for IT Engineer. This focuses on frontend and
back-end design. After learning Web Development students can advance their career in the field
of web development.
Utmost care has been taken while preparing this lab manual however always there is chances
of improvement. Therefore, we welcome constructive suggestions for improvement and
removal of errors if any.
Sr. CO CO CO CO CO CO
Objective(s) of Experiment
No. 1 2 3 4 5 6
Draw and explain architecture of the web browser. List
1. and explain various HTML request and response headers. √
Create a web page using frame. Divide the page into two
7 parts with Navigation links on left hand side of page √
(width=20%) and content page on right hand
21 Cookie Example √
Index
(Progressive Assessment Sheet)
Sr. No. Objective(s) of Experiment Page Date of Date of Assessm Sign. of Remar
No. perfor submis ent Teacher ks
mance sion Marks with
date
1 Draw and explain architecture of the web
browser. List and explain various HTML
request and response headers.
2 Create your resume using HTML
(Suggested sections of resume are Personal
Information, Educational Information,
Professional Skills, Experience,
Achievements, Hobbies), Experiment with
text, colors, link and lists.
3 Create your class time table using table tag,
experiment with rowspan, colspan,
cellspacing and cellpadding attributes.
4 Design static web pages for your college
containing a description of the courses,
departments, faculties, library etc. Provide
links for navigation among pages.
5 Create User Registration Form in HTML
(Suggested to use fields like Name, Date of
Birth, Gender, Email Id, Mobile No.,Address,
State , Education , Image Upload etc) using
textbox, textarea, checkbox, radio button,
select box, button, file upload etc.
6 Create two web pages, one contains audios
and other page contains videos (using HTML5
audio and video tags). Also provide link for
navigation between pages.
7 Create a web page using frame. Divide the
page into two parts with Navigation links
on left hand side of page (width=20%) and
content page on right hand side of page
(width = 80%). On clicking the navigation
Links corresponding content must be
shown on the right-hand side.
8 Design a web page of your home town with
an attractive background color, text color,
an Image, font etc. (use internal CSS).
Experiment No: 1
Draw and explain architecture of the web browser. List and explain various
HTML request and response headers.
Date:
Relevant CO: 1
Objectives:
Theory:
The browser main functionality is to present the web resource you choose, by requesting it
from the server and displaying it on the browser window. The resource format is usually
HTML but also PDF, image and more.
USER INTERFACE
The space where interaction between users and the browser. Most of the browsers have
common inputs for user interface:
- Address bar.
- Next and back buttons.
- Buttons for home, refresh and stop
- Bookmark web pages
Browser Engine provides methods to begin the loading of URL and other high-level
browsing actions.
- Reload, Back, Forward actions
- Error messages
- Loading progress
RENDERING ENGINE
Rendering Engine interprets (render) the HTML, XML, JavaScript and generates the layout
that is displayed in the User Interface. Key component of this phase is HTML, CSS parse.
NETWORKING
Access and transfer data on the internet (calls HTTP, HTTPS, FTP). The Networking
components handles all aspects of internet communication or security.
JAVASCRIPT INTERPRETER
Component parse & executes the JavaScript that is embedded in the website. Results of the
execution a passed to the Rendering Engines for display.
DISPLAY BACKEND
Display common UI components. Drawing basic widgets like combo boxes, windows.
DATA PERSISTENCE
An HTTP message consists of a message header and an optional message body, separated by a
blank line, as illustrated below:
Request Headers
The request headers are in the form of name:value pairs. Multiple values, separated by
commas, can be specified.
Example
The following shows a sample HTTP request message:
HTTP protocol defines a set of request methods. A client can use one of these request methods
to send a request message to an HTTP server.
• GET: A client can use the GET request to get a web resource from the server.
• HEAD: A client can use the HEAD request to get the header that a GET request would
have obtained. Since the header contains the last-modified date of the data, this can be
used to check against the local cache copy.
• POST: Used to post data up to the web server.
• PUT: Ask the server to store the data.
• DELETE: Ask the server to delete the data.
• TRACE: Ask the server to return a diagnostic trace of the actions it takes.
o User Interface: The user interface is an area where the user can use several options like
address bar, back and forward button, menu, bookmarking, and many other options to
interact with the browser.
o Browser Engine: It connects the UI (User Interface) and the rendering engine as a bridge.
It queries and manipulates the rendering engine based on inputs from several user
interfaces.
o Rendering Engine: It is responsible for displaying the requested content on the browser
screen. It translates the HTML, XML files, and images, which are formatted by using the
CSS. It generates the layout of the content and displays it on the browser screen.
Although it can also display the other types of content by using different types of plugins
or extensions. such as:
o Internet Explorer uses Trident
o Chrome & Opera 15+ use Blink
o Chrome (iPhone) & Safari use Webkit
o Firefox & other Mozilla browsers use Gecko
o Networking: It retrieves the URLs by using internet protocols like HTTP or FTP. It is
responsible for maintaining all aspects of Internet communication and security.
Furthermore, it may be used to cache a retrieved document to reduce network traffic.
Conclusion:
Web browsers are complex software applications with a layered architecture that
includes components for user interaction, rendering, networking, and security. They use
various request and response headers to communicate with web servers and display web
content accurately and securely. Understanding these headers is essential for web
developers and administrators to optimize website performance and security.
Experiment No: 2
Create your resume using HTML (Suggested sections of resume are Personal
Information, Educational Information, Professional Skills, Experience, Achievements,
Hobbies), Experiment with text, colors, link and list.
Date:
Relevant CO: 2
Objectives:
Theory:
HTML :
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body> -
<h1> Hello World </h1>
</body> -
</html>
- DOCTYPE specifies the document type. the document type is specified by the
Document Type Definition ( DTD ).
- <head> section is used to specify title of the page using <title> tag. It is also used for
adding external css and javascript files to html document.
How to save and check output
- Editors like notepad, notepad++, sublime text, visual studio code can be used to write
html code
- HTML List allow web developers to group a set of related items in lists
o Starts with <ul> tag list item starts with <li> tag
o Lists items will be marked with bullets o
Example
<ul>
<li>C</li>
<li>C++</li>
<li>Java</li>
</ul>
<ol>
<li>Apple</li>
<li>Mango</li>
<li>Banana</li>
</ol>
<dl>
<dt>CE</dt>
<dd>- Computer Engineering</dd>
<dt>IT</dt>
<dd>- Information Technology</dd>
</dl>
Implementation:
Create your resume using HTML (Suggested sections of resume are Personal Information,
Educational Information, Professional Skills, Experience, Achievements, Hobbies),
Experiment with text, colors, link and list.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Resume</title>
</head>
<body>
<section style="padding-left: 10%;height: 100px;">
<p style="font-size: 27px; ">SVAPNILKUMAR RATHOD</p>
<p style="font-size: 15px; ">Full Stack Developer</p>
</section> <hr>
<section style="padding-left: 10%;">
<h3>Personal Information : </h3>
<h3>Achievement :</h3>
<ul>
<li>Participated in NIH-23</li><br>
<li><strong>SIH'23</strong> - Smart India Hackathon</li>
</ul
<h3>Hobbies</h3>
<ul>
<li>Playing Football</li><br>
<li>Learning New Skill in my free time</li><br>
<li>Problem Solving</li>
</ul>
<h4>Contact : </h4>
<p style="padding-left: 40px;"><strong>Linkedin Profile:</strong>
https://www.linkedin.com/in/svapnil-rathod-2b6277263</p>
</section>
</body>
</html>
Conclusion:
Creating a resume using HTML allows for customization and presentation flexibility, making it a
powerful tool for showcasing one's qualifications and skills. By experimenting with text, colors, links,
and lists, you can create a visually appealing and organized resume that effectively communicates
your professional profile.
Quiz:
1. Explain HTML Document Structure.
HTML Document consists of three main parts
1. DOCTYPE declaration
2. <head> section
3. <body> section
Experiment No: 3
Create your class time table using table tag, experiment with rowspan, colspan,
cellspacing and cellpadding attributes.
Date:
Relevant CO: 2
Objectives:
- HTML tables allow web developers to arrange data into rows and columns.
- The <table> tag defines an HTML table.
- table row is defined with a <tr> tag.
- table header is defined with a <th> tag.
- text in <th> elements are bold and centered.
- Each table data/cell is defined with a <td>.
- By default, the text in <td> elements are regular and left-aligned.
- colspan attribute is used to make a cell span more than one column.
- rowspan attriute is used to make a call span more than one row.
- cellpadding represents the distance between cell borders and the content within a
cell.
- The cellspacing attribute defines space between table cells.
- Example
o Below code is for arranging car details in tabular format.
o You may stude table tag and output as below.
<table border="1">
<tr>
<th>Name</th>
<th>Color</th>
<th>Price</th>
</tr>
<tr>
<td>Swift VXI</td>
<td>Red</td>
<td>800000</td>
</tr>
<tr>
<td>Vagon R</td>
<td>White</td>
<td>600000</td>
</tr>
</table>
Implementation:
Create your class time table using table tag, experiment with rowspan, colspan, cellspacing
and cellpadding attributes.
<!DOCTYPE html>
<html>
<head>
<title>Class Time Table</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container{
display: block;
width: 80%;
text-align: center;
margin: 10px 150px;
}
h1 {
color: #333333;
text-align: center;
background-color: bisque;
}
table {
border-collapse: collapse;
width: 100%;
th {
background-color: #333333;
color: #ffffff;
padding: 10px;
text-align: center;
}
td {
padding: 10px;
border: 1px solid #cccccc;
background-color: beige;
}
.day {
width: 100px;
}
.break {
text-align: center;
font-size: 30px;
background-color: #cccccc;
}
td,
th {
width: 80px;
}
</style>
</head>
<body>
<div class="container">
<h1>Class Time Table</h1>
<table>
<tr>
<th width="80px">Time\Day</th>
<th class="day">Monday</th>
<th class="day">Tuesday</th>
<th class="day">Wednesday</th>
<th class="day">Thursday</th>
<th class="day">Friday</th>
</tr>
<tr>
<td>10:30 AM - 11:30 PM</td>
<td width="140px">PE( VF 1 )</td>
<td>CN ( VBT )</td>
<td>ADA ( JTP )</td>
<td>IPDC ( VF 3 )</td>
<td>PE ( VF 1 )</td>
</tr>
<tr>
<td>11:30 AM - 12:30 PM</td>
<td>IPDC ( VF 1 )</td>
<td>CN ( VBT )</td>
L.D. COLLEGE OF ENGINEERING Page | 24
3151606 Web Development Lab Manual 210280116092
<td>ADA ( JTP )</td>
<td>CN ( VBT )</td>
<td>CN ( VBT )</td>
</tr>
<tr>
<td>12:30 PM - 01:00 PM</td>
<td class="break" colspan="5">Break</td>
</tr>
<tr>
<td>1:00 PM - 02:00 PM</td>
<td rowspan="2">ADA LAB ( B1 - JTP )</td>
<td rowspan="2">CN LAB ( B1 - PNR )</td>
<td rowspan="2">DS LAB ( A4 - JBC )</td>
<td rowspan="2">WD LAB ( B1 - BBP )</td>
<td>ADA ( JTP )</td>
</tr>
<tr>
<td>02:00 PM - 03:00 PM</td>
<td>ADA ( JTP )</td>
</tr>
<tr>
<td>03:00 PM - 03:15 PM</td>
<td class="break" colspan="5">Break</td>
</tr>
<tr>
<td>03:15 PM - 04:15 PM</td>
<td>PE ( VF 1 )</td>
<td>WD ( AJP )</td>
<td rowspan="2"></td>
<td>CS ( KKJ )</td>
<td>CS ( KKJ )</td>
</tr>
<tr>
<td>04:15 PM - 05:15 PM</td>
<td>WD ( AJP )</td>
<td>WD ( AJP )</td>
<td>DS ( JBP )</td>
<td>DS ( JBP )</td>
</tr>
</table>
</div>
</body>
</html>
Conclusion:
Creating a class timetable using HTML tables and experimenting with rowspan, colspan,
cellspacing, and cellpadding attributes allows for the creation of a structured and visually
appealing schedule. using HTML tables and attributes provides a flexible and organized way
to display schedules or tabular data.
Quiz:
1. Explain the use of rowspan and colspan attributes in table tag.
The rowspan and colspan are the attributes of <td> tag. These are used to specify the number of
rows or columns a cell should merge.
2. Differentiate between <td> and <th>.
TH is used for table header cells while TD is used for table data cells.
Experiment No: 4
Design static web pages for your college containing a description of the courses,
departments, faculties, library etc. Provide links for navigation among pages.
Date:
Relevant CO: 2
Objectives:
Theory:
HTML Links:
Design static web pages for your college containing a description of the courses, departments,
faculties, library etc. Provide links for navigation among pages.
\
<!DOCTYPE html>
<html>
<head>
<title>Your College</title>
<link rel="stylesheet" type="text/css" href="practical4.css" />
</head>
<body>
<div class="ldheader">
<div class="logo">
<img src="logo.jpg" style="height: 140px; width: 140px" />
</div>
<div class="ldname">
L.D. College of Engineering
<div class="loc">Ahemedabad, Gujarat, India</div>
</div>
</div>
<div class="headline">Dictionary</div>
<div class="content">
Our college offers a dynamic learning environment with innovative courses
that foster critical thinking, creativity, and hands-on experience,
empowering you to excel in your chosen field. check here!
<a href="courses.html"><strong>courses</strong></a
><br /><br />
Our college is home to a vibrant array of departments, each dedicated to
academic excellence and real-world relevance. From the humanities to the
sciences, our diverse departments nurture curiosity, critical thinking,
and creativity. check here!
<a href="department.html"><b>Departments</b></a> <br /><br />Our esteemed
faculty members bring a wealth of knowledge and practical experience to
the classroom. check here! <a href="Faculties.html"><b>Faculties</b></a>
<br /><br />Our college library is a treasure trove of knowledge,
providing students with access to a vast collection of books, journals,
and digital resources. It's a quiet sanctuary for research, study, and
intellectual exploration. check here!
<a href="library.html"><b>Library</b></a>
File : courses.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Courses Offered</title>
<link rel="stylesheet" href="practical4.css" />
<style>
.course-list {
margin-left: 160px;
list-style: none;
display: flex;
flex-wrap: wrap;
padding: 0;
font-size: 25px;
}
.course-list li {
width: calc(30% - 20px);
margin: 10px;
padding: 10px;
border: 1px solid #131313;
background-color: #b9c799;
text-align: center;
}
</style>
</head>
<body>
<div class="ldheader">
<div class="logo">
<img src="logo.jpg" style="height: 140px; width: 140px" />
</div>
<div class="ldname">
L.D. College of Engineering
<div class="loc">Ahemedabad, Gujarat, India</div>
</div>
</div>
<div class="menubar">
<a href="College.html" style="text-decoration: none"
><div class="headline">Home</div></a
>
<a href="courses.html" style="text-decoration: none"
><div class="headline">Courses</div></a
File : department.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Courses Offered</title>
<link rel="stylesheet" href="practical4.css">
</head>
<body>
<div class="ldheader">
<div class="logo"><img src="logo.jpg" style="height: 140px; width: 140px;"></div>
<div class="headline1">Departments</div>
<ul class="course-list">
<li>Applied Mechanics</li>
<li>Biomedical Engineering</li>
<li>Chemical Engineering</li>
<li>Civil Engineering</li>
<li>Computer Engineering</li>
<li>Electrical Engineering</li>
<li>Electronics & Communication Engineering</li>
<li>Environment Engineering</li>
<li>Information Technology</li>
<li>Instrumentation & Control Engineering</li>
<li>Mechanical Engineering</li>
<li>Plastic Technology</li>
<li>Robotics and Automation</li>
<li>Rubber Technology</li>
</ul>
</body>
</html>
File : Faculties.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Courses Offered</title>
<link rel="stylesheet" href="practical4.css" />
</head>
<body>
<div class="ldheader">
<div class="content">
The faculty of a college comprises a diverse group of professionals who
are experts in their respective fields. They are responsible for
delivering quality education to students across various disciplines. These
educators typically hold advanced degrees, such as master's or doctoral
degrees, and have extensive experience in academia or industry.
<br /><br />
Faculty members play a pivotal role in designing and implementing the
curriculum, ensuring that it meets academic standards and stays relevant
to current industry trends. They conduct research and contribute to the
body of knowledge in their fields, which can benefit both students and
society at large. Additionally, faculty often serve as advisors and
mentors, guiding students in their academic and career pursuits.
<br /><br />
Beyond the classroom, faculty engage in institutional governance,
participating in committees and decision-making processes that shape the
college's policies and direction. They also contribute to the college's
reputation through their research, publications, and professional
affiliations, which can attract students and funding.
<br /><br />
In summary, the faculty of a college are dedicated educators, researchers,
and mentors who are instrumental in shaping the academic experience,
L.D. COLLEGE OF ENGINEERING Page | 32
3151606 Web Development Lab Manual 210280116092
fostering intellectual growth, and advancing the institution's mission and
reputation.
</div>
</body>
</html>
File : library.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Courses Offered</title>
<link rel="stylesheet" href="practical4.css">
</head>
<body>
<div class="ldheader">
Libraries often provide quiet study spaces, computer workstations, and access
to Wi-Fi, creating a conducive environment for students to study and collaborate.
Librarians, who are highly trained information professionals, assist users in
finding and accessing materials, conducting research, and navigating digital resources.
</body>
</html>
File : practical4.css
.ldheader{
margin-top: 20px;
display: flex;
align-items: center;
border-bottom: 3px solid blue;
padding-bottom: 20px;
}
.logo{
height: fit-content; width: fit-content;
margin-left: 225px;
}
.ldname{
font-size: 50px;
height: fit-content;
width: fit-content;
font-family: Arial, Helvetica, sans-serif;
}
.loc{
font-size: 25px;
}
.headline{
width: fit-content;
margin: 25px 0 25px 150px;
color: #7f7fb5;
font-family: Arial, Helvetica, sans-serif;
font-size: 25px ;
border-bottom: 4px solid #6a6aab;
text-decoration: none;
}
.menubar{
margin-left: 10px;
display: flex;
}
.headline1{
width: fit-content;
L.D. COLLEGE OF ENGINEERING Page | 34
3151606 Web Development Lab Manual 210280116092
margin: 30px 0 25px 150px;
color: #72729f;
font-family: Arial, Helvetica, sans-serif;
font-size: 35px ;
}
.content{
height: fit-content;
margin: 25px 250px 25px 250px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px ;
padding: 50px;
border-left: 3px solid #7e7ea8;
}
.course-list {
margin-left: 160px;
list-style: none;
display: flex;
flex-wrap: wrap;
padding: 0;
font-size: 25px;
background-color: rgb(170, 126, 107);
}
.course-list li {
Output:
Conclusion:
By using reference tag we can provide link to other web pages. Reference tag
provides functionality to navigate by clicking on provided link keyword. It is useful in large
and categorized data where navigation is necessary.
Quiz:
Experiment No: 5
Create User Registration Form in HTML (Suggested to use fields like Name, Date of
Birth, Gender, Email Id, Mobile No.,Address, State , Education , Image Upload etc) using
textbox, textarea, checkbox, radio button, select box, button, file upload etc.
Date:
Relevant CO: 2
Objectives:
</form>
</textarea>
</select>
Implementation:
Create User Registration Form in HTML (Suggested to use fields like Name, Date of Birth,
Gender, Email Id, Mobile No.,Address, State , Education , Image Upload etc) using textbox,
textarea, checkbox, radio button, select box, button, file upload etc
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>User Registration Form</title>
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
.container {
background-color: #e9eeef;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding: 30px;
border-radius: 10px;
text-align: center;
}
h2 {
margin-top: 0;
}
form {
text-align: left;
}
</style>
</head>
<body>
<div class="container">
<h3>User Registration Form</h3>
<hr />
<br />
<form
action="process.php"
method="POST"
enctype="multipart/form-data"
>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required /><br /><br />
<label>Gender:</label>
<input type="radio" id="male" name="gender" value="Male" required />
<label for="male">Male</label>
<input
type="radio"
id="female"
name="gender"
value="Female"
required
/>
<label for="other">Other</label><br /><br />
<label for="mobile">Mobile Number:</label>
<input type="tel" id="mobile" name="mobile" required /><br /><br />
<label for="email">Email ID:</label>
<input type="email" id="email" name="email" required /><br /><br />
<label for="address">Address:</label><br />
<textarea id="address" name="address" rows="4" cols="50%"></textarea
><br /><br />
<label for="state">State:</label>
<select id="state" name="state" required>
<option value="State1">Gujarat</option>
<option value="Select">Maharastra</option>
<option value="State2">Delhi</option>
<option value="State3">Rajasthan</option></select
><br /><br />
<label for="education">Education:</label>
<input
type="text"
id="education"
name="education"
required
/><br /><br />
<label for="image">Upload Image:</label>
<input
type="file"
id="image"
name="image"
accept="image/*"
required
/><br /><br />
<input
type="submit"
value="Submit"
style="
background-color: rgb(227, 229, 231);
width: 100px;
height: 30px;
border-radius: 7px;
border: 1px solid black;
margin-left: 38%;
"
/>
</form>
</div>
</body>
</html>
</head>
</html>
Output :
Conclusion:
The creation of a user registration form in HTML with a diverse range of input fields,
including textboxes, text areas, checkboxes, radio buttons, select boxes, a file upload field,
and buttons, is an essential skill for web development. This practical exercise allows
students to understand the fundamentals of form design and how to gather user information
effectively
Quiz:
Experiment No: 6
Create two web pages, one contains audios and other page contains videos (using
HTML5 audio and video tags). Also provide link for navigation between pages.
Date:
Relevant CO: 2
Objectives:
Theory:
HTML Video
Example :
The controls attribute adds video controls, like play, pause, and volume.
The <source> element allows you to specify alternative video files which the browser may
choose from. The browser will use the first recognized format.
The text between the <video> and </video> tags will only be displayed in browsers that do
not support the <video> element.
HTML Audio
The HTML <audio> element is used to play an audio file on a web page.
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
The controls attribute adds audio controls, like play, pause, and volume.
The <source> element allows you to specify alternative audio files which the browser may
choose from. The browser will use the first recognized format.
Implementation:
Create two web pages, one contains audios and other page contains videos (using HTML5
audio and video tags). Also provide link for navigation between pages.
File : audio.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audio Page</title>
<link rel="stylesheet" href="styles.css">
<style>
.ad{
border: 2px solid rgb(166, 88, 187); border-radius: 30px;
margin-left: 120px; margin-top: 50px;
box-shadow: 0px 4px 8px rgba(197, 120, 134, 0.4);
}
.ls{
display: block; width: fit-content;
text-decoration: none; font-size: 20px; border: 2px solid #333; border-radius: 7px; margin:
20px auto; padding: 10px 20px;
background-color: #333; color: #fff;
transition: background-color 0.3s ease;
}
</style>
</head>
<body>
<h1 style="text-align: center; font-family:'Times New Roman', Times, serif ; background-
color: antiquewhite;">Audio Page</h1><hr>
<audio controls src="sample-3s.mp3" class="ad"> Your browser does not support the audio
element.
</audio>
<audio controls src="sample-6s.mp3" type="audio/mpeg" class="ad"> Your browser does not
support the audio element.
</audio>
<audio controls src="sample-9s.mp3" class="ad"> Your browser does not support the audio
element.
</audio>
File : video.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Video Page</title>
<link rel="stylesheet" href="styles.css" />
<style>
.ls {
display: block;
width: fit-content;
text-decoration: none;
font-size: 20px;
border: 2px solid #0f0e0f;
border-radius: 7px;
margin: 20px auto;
padding: 10px 20px;
background-color: #141515;
color: #e7edf1;
transition: background-color 0.3s ease;
}
video {
height: 150px;
L.D. COLLEGE OF ENGINEERING Page | 49
3151606 Web Development Lab Manual 210280116092
width: 300px;
margin-left: 120px;
margin-top: 30px;
border-radius: 10px;
}
</style>
</head>
<body>
<h1 style="
text-align: center;
font-family: 'Times New Roman', Times, serif;
background-color: antiquewhite;
"
>
Video Page
</h1>
<hr />
<video controls src="sample-5s.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<video controls src="sample-5-2.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<video controls src="sample-5-3.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<video controls src="sample-13.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<video controls src="sample-29.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
<video controls src="sample-5s.mp4" type="video/mp4">
Your browser does not support the video element.</video
><br /><br />
<a href="audio.html" class="ls">Go to Audio Page ></a>
</body>
</html>
Conclusion:
This practical exercise demonstrates the versatility of HTML5 in incorporating
multimedia elements into web pages, making it possible to create engaging and dynamic
online experiences for visitors.
Quiz:
2.The HTML <audio> element is used to play an audio file on a web page.
<audio controls>
<source src=”horse.ogg” type=”audio/ogg”>
<source src=”horse.mp3” type=”audio/mpeg”> Your browser does not
support the audio element.
</audio>
Rubrics 1 2 3 Total
Marks
Experiment No: 7
Create a web page using frame. Divide the page into two parts with Navigation links on
left hand side of page (width=20%) and content page on right hand side of page (width
= 80%). On clicking the navigation Links corresponding content must be shown on the
right-hand side.
Date:
Relevant CO: 2
Objectives:
The <frame> tag was used in HTML 4 to define one particular window (frame) within a
<frameset>
HTML frames are used to divide your browser window into multiple sections where each
section can load a separate HTML document.
A collection of frames in the browser window is known as a frameset.
The window is divided into frames in a similar way the tables are organized: into rows and
columns.
Creating Frames
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
in below implementation use target attribute in navigation link to open page in specific frame.
Implementation:
Create a web page using frame. Divide the page into two parts with Navigation links on left
hand side of page (width=20%) and content page on right hand side of page (width = 80%).
On clicking the navigation Links corresponding content must be shown on the right-hand side.
File : practical7.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Frameset Tags</title>
</head>
<frameset cols="20%,80%">
<frame src = "left_frame.html">
<frame src ="right_frame.html" name="content">
<noframes>
<body>
<h5>your browser does not support frames...</h5>
</body>
</noframes>
</frameset>
</html>
File : right_frame.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home page</title>
</head>
<body>
<div style="padding-top: 60px">
<h1 style="text-align: center">Welcome...</h1>
<hr />
<h2 style="padding-top: 15px">Practical No : 07</h2>
<h3 style="font-family: Arial, Helvetica, sans-serif">
Create a web page using frame. Divide the page into two parts with
Navigation links on left hand side of page (width=20%) and content page
on right hand side of page (width = 80%). On clicking the navigation
Links corresponding content must be shown on the right-hand side.
</h3>
</div>
</body>
</html>
File : pageB.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page B</title>
</head>
<body>
<div style="padding-top: 60px; text-align: center">
<h1>Welcome...</h1>
<hr />
<br />
<h3>All About Page - B :</h3>
</div>
</body>
</html>
Output:
Quiz:
Experiment No: 8
Design a web page of your home town with an attractive background color, text color,
an Image, font etc. (use internal CSS).
Date:
Relevant CO: 3
Objectives:
Theory:
Introduction To CSS
Example: In this example all <p> elements will be center-aligned, with a red text color
<!DOCTYPE html>
<html>
<head>
<style> p {
color: red;
text-align: center;
}
</style>
</head>
<body>
<p>Hello World!</p>
<p>These paragraphs are styled with
CSS.</p>
</body>
</html>
- p is a selector in CSS (it points to the HTML element you want to style: <p>).
- color is a property, and red is the property value
- text-align is a property, and center is the property value
CSS Selectors
- CSS Element Selector o The element selector selects HTML elements based on the
element name. o Example:
p{
text-align:
center; color:
red; }
<!DOCTYPE html>
<html>
<head>
<style>
#para1 {
text-align: center;
color: red;
}
</style>
</head>
<body>
<p id="para1">Hello
World!</p> <p>This paragraph
is not affected
by the style.</p>
</body>
</html>
o The class selector selects HTML elements with a specific class attribute.
o To select elements with a specific class, write a period (.) character, followed by
the class name. o Example
In this example all HTML elements with class="center" will be red and
center-aligned:
<!DOCTYPE html>
<html>
<head>
<style> .center
{
text-align: center;
color: red;
}
</style>
</head>
<body>
<h1 class="center">Red and
centeraligned heading</h1>
<p class="center">Red and
centeraligned paragraph.</p>
</body>
</html>
- CSS Universal Selector o The universal selector (*) selects all HTML elements on the
page.
Example
<!DOCTYPE html>
<html>
<head>
<style> *
{
text-align: center;
color: blue;
}
</style>
</head>
<body>
<h1>Hello world!</h1>
<p>Every element on the page will be
affected by the style.</p>
<p id="para1">Me too!</p>
<p>And me!</p>
</body>
</html>
o The grouping selector selects all the HTML elements with the same
style definitions.
o To group selectors, separate each selector with a comma. o Example:
o Some selectors can be considered different because of the way the element they
belong to works.
o For example the anchor that creates a link between documents can have pseudo
classes attached to it simply because it is not known at the time of writing the
markup what the state will be.
o It could be visited , not visited , or in the process of being selected.
o CSS pseudo-classes are used to add special effects to some selectors. You do not
need to use JavaScript or any other script to use those effects.
o selector:pseudo-class {property: value} o CSS classes can also be used with
pseudo-classes o selector.class:pseudo-class {property: value} Example
- Types Of CSS
o External CSS o
Internal CSS o
Inline CSS
- Internal CSS
o An internal style sheet may be used if one single HTML page has a unique style.
o The internal style is defined inside the <style> element, inside the head section.
o Example:
<!DOCTYPE html>
<html>
<head>
<style> body
{
background-color: linen;
} h1 { color:
maroon;
margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Example
body {
background-color: lightblue;
}
<h1 style="color:Tomato;">Hello
World</h1>
Implementation:
Design a web page of your home town with an attractive background color, text color, an
Image, font etc. (use internal CSS).
File : practical8.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home-Town</title>
<link rel="stylesheet" href="Practical8.css" />
</head>
<body>
<div class="image">
<div class="Font" style="padding-top: 200px"><h1>GIR SOMNATH</h1></div>
<div class="Font"><h4>Gandi Gir</h4></div>
</div>
<hr />
<div class="text">
<div style="color: rgb(119, 105, 184)"><h1>Explore Gir Somnath</h1></div>
<div style="padding-left: 20px">
<h3>
Gir somnath district was carved out from junagadh district as one of
the new seven district in August 2013. Head quarter of the district is
at veraval. Gir somnath district is located in saurastra region of
Gujarat and surrounded by the Arabian sea to its south.
</h3>
<h3>
Una is the biggest talukain Gir Sonath district in number of villages.
Main tourist attractions are Pauranik Talav (Ancient Lake), Rawal Dam,
Ahmedpur Mandvi Beach, Sana Cave An ancient places, Tulsishyam famous
for temple of lord Krishna, Banej Temple of Mahadev in middle of Gor
forest. Una is one of the “the biggest Limestone supplier” in Gujarat
State.
L.D. COLLEGE OF ENGINEERING Page | 65
3151606 Web Development Lab Manual 210280116092
</h3>
<h3>
Kodinar : Main tourist attractions are Mul Dwarka, Kaj and Kanjotar a
small seashore villages near Kodinar in which mul dwarka is a historic
place of the original Dwarka of Mahabharata. Kodinar is home to
Gujarat Ambuja Cement Ltd. One of the largest cement manufacturing
company.
</h3>
<h3>
Talala Gir is Famous for its <strong>“KESAR MANGO”</strong>, Siddi’s
folk dance “Dhamal and Gir national park and Sanctuary”. Siddi people
who are originally from the south Africa are found in Jambur village,
also known as Mini Africa of India
</h3>
<h3>
Sutrapada is a coastal taluka of Gir somnath district. This place is
known for GHCL plant, largest ” Soda ash” producing company in the
world. Gujarat Siddhi cement manufacturing plant is also located in
the taluka.
</h3>
<h3>
Gir Gadhada is the newly formed taluka of the district. It has been
curved out from Una taluka in August 2013. Famous Tulsi shyam, temple
of Lord Krishna is situated in this taluka.
</h3>
</div>
</div>
</body>
</html>
File : practical8.css
.body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
.image {
height: 350px;
width: 100%;
background-image: url(image1.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transition: 10s;
font-family: Verdana, Geneva, Tahoma, sans-serif;
animation-name: animate;
animation-direction: alternate-reverse;
animation-duration: 30s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
L.D. COLLEGE OF ENGINEERING Page | 66
3151606 Web Development Lab Manual 210280116092
animation-play-state: running;
animation-timing-function: ease-in-out;
}
@keyframes animate {
0% {
background-image: url(image1.jpg);
}
20% {
background-image: url(image2.jpg);
}
40% {
background-image: url(image3.jpg);
}
60% {
background-image: url(image4.png);
}
80% {
background-image: url(image5.jpg);
}
100% {
background-image: url(image6.jpg);
}
}
.Font {
color: bisque;
margin-left: 150px;
}
.text {
padding-left: 30px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
Output:
Conclusion:
This task involves creating a visually appealing and informative web page that
reflects your hometown's unique characteristics and attractions. By using internal CSS, you
can style the page elements effectively and achieve a cohesive and visually pleasing design.
This exercise provides valuable experience in combining HTML and CSS to create
aesthetically pleasing web pages
Quiz:
Experiment No: 9
Use Inline CSS to format your resume that you created in practical no 02.
Date:
Relevant CO: 3
Objectives:
Internal CSS
- An inline style may be used to apply a unique style for a single element.
- To use inline styles, add the style attribute to the relevant element. The style attribute
can contain any CSS property.
Example:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;text-align:center;">This is a heading</h1> <p
style="color:red;">This is a paragraph.</p>
</body>
</html>
Implementation:
Use Inline CSS to format your resume that you created in practical no 02.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Resume</title>
</head>
<style>
.head {
padding-left: 10%;
height: 100px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: rgb(6, 61, 57);
<h3>Experience :</h3>
<p style="padding-left: 40px"><strong>Fresher</strong>- No Experience</p>
<h3>Achievement :</h3>
<ul>
<li>Participated in Hackout'23</li>
<br />
<li><strong>SIH'23</strong> - Smart India Hackathon</li>
L.D. COLLEGE OF ENGINEERING Page | 70
3151606 Web Development Lab Manual 210280116092
</ul>
<h3>Hobbies</h3>
<ul>
<li>Playing Football</li>
<br />
<li>Learning New Skills in my free time</li>
<br />
<li>Travelling</li>
</ul>
<h4>Contact :</h4>
<p style="padding-left: 40px">
<strong>Linkedin Profile:</strong>
https://www.linkedin.com/in/svapnil-rathod-2b6277263
</p>
</section>
</body>
</html>
Output:
Conclusion:
CSS allows web developers to apply styles, such as colors, fonts, spacing, and
positioning, to HTML elements, making it possible to create visually stunning and consistent
web designs.
L.D. COLLEGE OF ENGINEERING Page | 71
3151606 Web Development Lab Manual 210280116092
In this practical we have added inline css in html code. Inline css is helpful when require to
search specific block and edit it
Quiz:
Experiment No: 10
Use External, Internal, Inline CSS to format Information Technology Department Web
Pages that you created in Practical No.04
Date:
Relevant CO: 3
Objectives:
• An external file is a good idea when you have a number of pages, or even a complete
site, which you need to control in terms of presentation.
• it saves lots of effort as at one time you would have needed to alter each page
individually.
• With an external style sheet, you can change the look of an entire website by changing
just one file!
• Each HTML page must include a reference to the external style sheet file inside the
<link> element, inside the head section.
• External CSS file must be saved with a .css extension.
• Example
HTML Code : index.html
<!DOCTYPE html>
<html>
<head>
<link rel=”stylesheet”
type=”text/css” href=”mystyle.css”>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Implementation:
Use External, Internal, Inline CSS to format Information Technology Department Web Pages
that you created in Practical No.04
<!DOCTYPE html>
<html>
<head>
<title>Your College</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
.ldheader{
margin-top: 20px; display: flex;
align-items: center;
border-bottom: 3px solid blue; padding-bottom: 20px;
}
.logo{
height: fit-content; width: fit-content; margin-left: 200px;
}
.ldname{
padding-left: 20px; font-size: 35px; height: fit-content; width: fit-content;
font-family: Arial, Helvetica, sans-serif;
}
.loc{
font-size: 17px;
}
.menubar{
margin-left: 150px; display: flex;
}
.headline{
width: fit-content;
margin: 10px 0 10px 100px; color: #034145;
font-family: Arial, Helvetica, sans-serif; font-size: 17px ;
text-decoration: none;
}
.content{
height: fit-content;
margin: 0 250px 15px 100px;
font-family: Arial, Helvetica, sans-serif; font-size: 14px ;
padding: 20px;
border-left: 2px solid #6b0154; background-color: rgb(255, 255, 255);
}
</head>
<body>
L.D. COLLEGE OF ENGINEERING Page | 74
3151606 Web Development Lab Manual 210280116092
<div class="ldheader">
<div class="logo"><img src="logo.jpg" style="height: 100px; width: 100px;"></div>
<div class="ldname">L.D. College of Engineering <div class="loc">Ahemedabad, Gujarat,
India</div></div>
</div>
<div class="menubar">
<p style="text-decoration: none;"><div class="headline">Home</div></p>
<p style="text-decoration: none;"><div class="headline">Courses</div></p>
<p style="text-decoration: none;"><div class="headline">Departments</div></p>
<p style="text-decoration: none;"><div class="headline">Faculties</div></p>
<p style="text-decoration: none;"><div class="headline">Library</div></p>
</div>
<div class="headline" style="display: flex; font-size: 22px;" ><img src="LDIT-logo"
style="height: 80px; width: 80px;"><div style="width: fit-content; padding: 30px 0px 0px
15px;">Welcome To Information Technology Department</div></div>
<div class="content"><strong>Vision :</strong> To shape the young minds of aspiring
Information Technology engineers
to become the front runner in the sustainable technological growth of our country,
conserving its
rich cultural heritage and catering to its socioeconomic needs.
<br><br>
<strong>Mission</strong> 1. Bringing innovative approach in teaching-learning process to
produce competent Information
Technology engineers. 2. Provide opportunities and necessary exposure to the young
engineers to
develop themselves into responsible professionals. 3. Infusing lifelong learning ability in
the aspiring minds with the view of making them sensible towards their social
responsibilities.
</div>
<div class="headline" style="font-size: 22px;">Dictionary </div>
<div class="content">Our college offers a dynamic learning environment with innovative
courses that
foster critical thinking, creativity, and hands-on experience, empowering you to excel in
your
chosen field.<br><br>
Our college is home to a vibrant array of departments, each dedicated to academic
excellence
and real-world relevance. From the humanities to the sciences, our diverse departments
nurture
curiosity, critical thinking, and creativity.
<br><br>Our esteemed faculty members bring a wealth of knowledge and practical experience
to the classroom.
<br><br>Our college library is a treasure trove of knowledge, providing students with
access to a vast
collection of books, journals, and digital resources. It's a quiet sanctuary for research,
study, and
intellectual exploration.
</div>
</body>
</html>
Conclusion:
By using css in this website it seems more structured and catchy then it was before.
CSS promotes a separation of concerns in web development by keeping the styling
information
separate from the content (HTML), making it easier to update and maintain websites
Quiz:
External CSS: External CSS contains separate CSS files that contain only style
properties with the help of tag attributes (For example class, id, heading, … etc). CSS
property is written in a separate file with a .css extension and should be linked to the
HTML document using a link tag