WD Lab Manual

Download as pdf or txt
Download as pdf or txt
You are on page 1of 78

3151606 Web Development Lab Manual 210280116092

A Laboratory Manual for

Web Development (3151606)


B.E. Semester 5
(Information Technology)
Institute logo

Directorate of Technical Education, Gandhinagar,


Gujarat
L.D. COLLEGE OF ENGINEERING Page | 1
3151606 Web Development Lab Manual 210280116092

LD College of Engineering, Ahmedabad

Certificate

This is to certify that Mr. SVAPNILKUMAR RAMESHBHAI RATHOD


Enrollment No. 210280116092 of B.E. Semester V Information Technology
of this Institute (GTU Code: 028) has satisfactorily completed the Practical /
Tutorial work for the subject Web Development (3151606) for the
academic year 2023-24.

Place:
Date:

Name and Sign of Faculty member

Head of the Department

L.D. COLLEGE OF ENGINEERING Page | 2


3151606 Web Development Lab Manual 210280116092

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.

L.D. COLLEGE OF ENGINEERING Page | 3


3151606 Web Development Lab Manual 210280116092
Practical – Course Outcome matrix

Course Outcomes (COs):


CO-1: Understand the concepts of WWW, HTTP protocol and client-server architecture.
CO-2: Learn and apply various HTML tags to build the user-friendly web pages.
CO-3: Explore the new features of CSS to define and apply CSS rules in the web pages for rich
User Interface.
CO-4: Create interactive web pages to improve the user experience using client-side scripting
with JavaScript.
CO-5: Design and develop fully functional dynamic web applications using the concepts of
PHP, MySQL,
CO-6: Learn and apply advanced asynchronous web communication mechanisms like REST
API, AJAX and jQuery for building highly interactive webpages.

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 your resume using HTML (Suggested sections of


resume are Personal Information, Educational
2. Information, Professional Skills, Experience, √
Achievements, Hobbies), Experiment with text, colors,
link and lists.
Create your class time table using table tag, experiment
3. with rowspan, colspan, cellspacing and cellpadding √
attributes.
Design static web pages for your college containing a
4. description of the courses, departments, faculties, library √
etc. Provide links for navigation among pages.
Create User Registration Form in HTML (Suggested to
use fields like Name, Date of Birth, Gender, Email Id,
5. Mobile No.,Address, State , Education , Image Upload etc) √
using textbox, textarea, checkbox, radio button, select
box, button, file upload etc.
Create two web pages, one contains audios and other
6 page contains videos (using HTML5 audio and video √
tags). Also provide link for navigation between pages.

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

L.D. COLLEGE OF ENGINEERING Page | 4


3151606 Web Development Lab Manual 210280116092

side of page (width = 80%). On clicking the navigation


Links corresponding content must be shown on the
right-hand side.
Design a web page of your home town with an
8. attractive background color, text color, an Image, √
font etc. (use internal CSS).
Use Inline CSS to format your resume that you
9. √
created in practical no 02.
Use External, Internal, Inline CSS to format
10. Information Technology Department Web Pages √
that you created in Practical No.04

11. Develop a java script to display today’s date.



Develop simple calculator for addition, subtraction,
12. multiplication and division operation using java √
script.
Write a java script code to combine and display the
information in textbox when the button is clicked √
13. use registration page that you created in Practical
No.5.
Use JavaScript to Implement validation in Practical
14. No.5. √

Write a PHP program to check if number is prime


15. √
or not.
Use Registration Form from practical number 5 to
store user registration details in MySql database. On
16. submission next page displays all registration data √
in in html table using php. Also provide feature to
update and delete the registration data.
Write a PHP script for user authentication using
17. √
PHP-MYSQL. Use session for storing username.
Using AJAX Create visual search feature to search
18. using name for practical number 16 which list name, √
mobile number and email id of matching users.

19. Create a REST API using php. √

20. Create an Image slider using jQuery. √

21 Cookie Example √

L.D. COLLEGE OF ENGINEERING Page | 5


3151606 Web Development Lab Manual 210280116092
Industry Relevant Skills
The following industry relevant competency are expected to be developed in the student
by undertaking the practical work of this laboratory.
1. HTML/CSS Skills : HTML is used extensively by web developers to build web pages.
CSS is used to implement different fonts, colors and layouts in the design of a
website.
2. Javascript Skills : Java Script is used for creating interactive web pages to improve
the user experience.
3. PHP/MySql Skills : PHP/MySql is used extensively by web developers to create fully
functional dynamic web applications.
4. REST API,AJAX,JQuery Skills : REST API, AJAX, JQuery are advanced asynchronous
web communication mechanisms and used by web developers for building highly
interactive webpages.
Guidelines for Faculty members
1. Teacher should provide the guideline with demonstration of practical to the students
with all features.
2. Teacher shall explain basic concepts/theory related to the experiment to the students
before starting of each practical
3. Involve all the students in performance of each experiment.
4. Teacher is expected to share the skills and competencies to be developed in the
students and ensure that the respective skills and competencies are developed in the
students after the completion of the experimentation.
5. Teachers should give opportunity to students for hands-on experience after the
demonstration.
6. Teacher may provide additional knowledge and skills to the students even though not
covered in the manual but are expected from the students by concerned industry.
7. Give practical assignment and assess the performance of students based on task
assigned to check whether it is as per the instructions or not.
8. Teacher is expected to refer complete curriculum of the course and follow the
guidelines for implementation.

Instructions for Students


1. Students have to write answers / solutions of QUIZ in separate file page. The quiz
of corresponding practical must be attached just behind each practical.
2. Students are expected to carefully listen to all the theory classes delivered by the
faculty members and understand the COs, content of the course, teaching and
examination scheme, skill set to be developed etc.
3. Students shall organize the work in the group and make record of all observations.
4. Students shall develop maintenance skill as expected by industries.
5. Student shall attempt to develop related hand-on skills and build confidence.
6. Student shall develop the habits of evolving more ideas, innovations, skills etc. apart
from those included in scope of manual.
7. Student shall refer technical magazines and data books.
8. Student should develop a habit of submitting the experimentation work as per the
schedule and s/he should be well prepared for the same.

L.D. COLLEGE OF ENGINEERING Page | 6


3151606 Web Development Lab Manual 210280116092
Sample Rubrics for Practical Evaluation

Understanding of Implementation of Presentation and report Total


Problem Problem writing (10
(3 marks) (4 marks) (3 marks) marks)

Excellent Moderate level Problem not


understanding of understanding of understood and
problem and problem and
relevance 03 relevance with 02 can't establish 01
Understanding with the the theory clearly the relation with
of Problem theory clearly understood.
the theory.
understood.

Efficient Moderate level of Partial


implementation implementation. implementation 01
with poor
with proper 04 Poor naming 03 understanding. to
Implementation
of Problem naming convention. 02
convention and
understanding

Unique Ordinary Weak


documentation documentation of documentation 01
(not copied from given problem of given problem
other sources) of 03 with proper 02 without proper to
Presentation given problem formatting and formatting and 02
and report with proper language language
formatting and
writing
language.

L.D. COLLEGE OF ENGINEERING Page | 7


3151606 Web Development Lab Manual 210280116092

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).

L.D. COLLEGE OF ENGINEERING Page | 8


3151606 Web Development Lab Manual 210280116092

9 Use Inline CSS to format your resume that you


created in practical no 02.
10 Use External, Internal, Inline CSS to format
Information Technology Department Web
Pages that you created in Practical No.04
11 Develop a java script to display today’s date.
12 Develop simple calculator for addition,
subtraction, multiplication and division
operation using java script.
13 Write a java script code to combine and
display the information in textbox when the
button is clicked use registration page that
you created in Practical No.5.
14 Use JavaScript to Implement validation in
Practical No.5.
15 Write a PHP program to check if number is
prime or not.
16 Use Registration Form from practical number
5 to store user registration details in MySql
database. On submission next page displays all
registration data in in html table using php.
Also provide feature to update and delete the
registration data.
17 Write a PHP script for user authentication
using PHP-MYSQL. Use session for storing
username.
18 Using AJAX Create visual search feature to
search using name for practical number 16
which list name, mobile number and email id
of matching users.
19 Create a REST API using php.
20 Create an Image slider using jQuery.
21 Create HTML form with one textbox and
button. Keep button label as SAVE. User will
enter color name in textbox and click on save
button.
On save, the value of textbox color name should
be saved in COOKIE.
Whenever user opens page again, the
background color should be same as saved in
cookie.
Total

L.D. COLLEGE OF ENGINEERING Page | 9


3151606 Web Development Lab Manual 210280116092

Experiment No: 1

Draw and explain architecture of the web browser. List and explain various
HTML request and response headers.

Date:

Competency and Practical Skills:

Relevant CO: 1

Objectives:

1. To understand architecture of the web browser.

2. To understand HTML request and response headers.

Theory:

WHAT’S THE BROWSER?

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.

Figure 1 Browser Architecture

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

L.D. COLLEGE OF ENGINEERING Page | 10


3151606 Web Development Lab Manual 210280116092
BROWSER ENGINE

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

Storing the data on the client side.


- Cookies.
- Cache.

Basic Flow of HTML processing

Figure 2 Basis Flow of HTML Processing

HTTP Request and Response Messages

L.D. COLLEGE OF ENGINEERING Page | 11


3151606 Web Development Lab Manual 210280116092
HTTP client and server communicate by sending text messages. The client sends a request
message to the server. The server, in turn, returns a response message.

An HTTP message consists of a message header and an optional message body, separated by a
blank line, as illustrated below:

HTTP Request Message

The format of an HTTP request message is as follow:

Request Headers

The request headers are in the form of name:value pairs. Multiple values, separated by
commas, can be specified.

request-header-name: request-header-value1, request-header-value2, ...

Examples of request headers are:


Host: www.xyz.com
Connection: Keep-Alive
Accept: image/gif, image/jpeg, */*
Accept-Language: us-en, fr, cn

Example
The following shows a sample HTTP request message:

L.D. COLLEGE OF ENGINEERING Page | 12


3151606 Web Development Lab Manual 210280116092

HTTP Response Message

The format of the HTTP response message is as follows:

HTTP Request Methods

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.

The methods are:

• 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.

L.D. COLLEGE OF ENGINEERING Page | 13


3151606 Web Development Lab Manual 210280116092
• OPTIONS: Ask the server to return the list of request methods it supports.
• CONNECT: Used to tell a proxy to make a connection to another host and simply reply
the content, without attempting to parse or cache it. This is often used to make SSL
connection through the proxy.
Quiz:

1. What is a web browser?


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

2. List three most popular browser.


Firefox. Google Chrome. Microsoft Edge

3. Draw and explain architecture of the web browser

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.

L.D. COLLEGE OF ENGINEERING Page | 14


3151606 Web Development Lab Manual 210280116092

o JavaScript Interpreter: As the name suggests, JavaScript Interpreter translates and


executes the JavaScript code, which is included in a website. The translated results are
sent to the rendering engine to display results on the device screen.
o UI Backend: It is used to draw basic combo boxes and Windows (widgets). It specifies a
generic interface, which is not platform-specific.
o Data Storage: The data storage is a persistence layer that is used by the browser to store
all sorts of information locally, like cookies. A browser also supports different storage
mechanisms such as IndexedDB, WebSQL, localStorage, and FileSystem. It is a database
stored on the local drive of your computer where the browser is installed. It handles user
data like cache, bookmarks, cookies, and preferences.

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.

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 15


3151606 Web Development Lab Manual 210280116092

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:

1. To understand HTML Page Structure.


2. To understand how to use HTML tag attributes.

Theory:

HTML :

- HTML stands for Hypertext Markup Language


- It is used to display the document in the web browser
- Hypertext is simply a piece of text that works as a link
- Markup Language is a way of writing layout information within documents
HTML Document Structure

- HTML Document consists of three main parts o DOCTYPE declaration o <head>


section o <body> section

<!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

L.D. COLLEGE OF ENGINEERING Page | 16


3151606 Web Development Lab Manual 210280116092
- Save html document file with .html extension
- To check output open html document with browser like google chrome , Microsoft
edge, Firefox etc.
HTML Formatting Tags

- <b> text </b> - for making the text bold.


- <strong> text </strong>- for making the text Important text
- <i> text </i>- for making the text Italic text
- <em> text </em>- to make the Emphasized text
- <mark>text </mark>- to make the text Marked text
- <small> text </small>- to make the text Smaller text
- <del>text</del> - to make the text Deleted text
- <ins> text </ins>- to make the text Inserted text
- <sub> text <sub>- to make the text Subscript text
- <sup>text </sup>- to make the text Superscript text
- <h1> to <h6> tags – for making Headings
- Font Color (<font color=”red”>Hello</font>) – to change font color - Font Size
(<font size=”10px”>Hello</font>) – to change font size

HTML List Tag

- HTML List allow web developers to group a set of related items in lists

- Unordered HTML List

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>

- Ordered HTML List

L.D. COLLEGE OF ENGINEERING Page | 17


3151606 Web Development Lab Manual 210280116092
o Starts with <ol> tag. Each list item starts with the <li> tag.
o Lists items will be marked with numbers by default

<ol>
<li>Apple</li>
<li>Mango</li>
<li>Banana</li>
</ol>

- HTML Description Lists

o A description list is a list of terms with a description of each term.


o <dl> tag defines the description list, <dt> tag defines the term (name) <dd> tag
describes each term

<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>

L.D. COLLEGE OF ENGINEERING Page | 18


3151606 Web Development Lab Manual 210280116092

<section style="padding-left: 40px;">


<p><strong>Name : </strong>Rathod Svapnilkumar Rameshbhai</p>
<p><strong>Email ID : </strong>[email protected]</p>
<p><strong>Phone No : </strong>+91 8238245850</p>
</section>
<h3>Educational Information :</h3>
<ul>
<li>Bachelor of Engineering in Information Technology - L.D.College Of Engineering</li><br>
<li>HSC - R.C.Patel School, Gandhinagar</li><br>
<li>SSC - R.C.Patel School, Gandhinagar</li>
</ul>
<h3>Professional Skills :</h3>
<ul>
<li>Software Engineer</li><br>
<li>Full Stack Web Developer</li><br>
<li>Programmer Analyst</li>
</ul>
<h3>Experience : </h3>
<p style="padding-left: 40px;"><strong>Fresher</strong>- No Experience</p>

<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>

L.D. COLLEGE OF ENGINEERING Page | 19


3151606 Web Development Lab Manual 210280116092
Output:

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

L.D. COLLEGE OF ENGINEERING Page | 20


3151606 Web Development Lab Manual 210280116092

2. List and explain any five HTML formatting tags.


<b> text </b> - for making the text bold.
<strong> text </strong>- for making the text Important text
<i> text </i>- for making the text Italic text
<em> text </em>- to make the Emphasized text
<mark>text </mark>- to make the text Marked text
<marquee>text</marquee>

3. Explain ordered and unordered list with example.


Unordered HTML List :
Starts with <ul> tag list item starts with <li> tag
Lists items will be marked with bullets
<ul>
<li>c<li/>
<li>c++<li/>
<li>c#<li/>
</ul>
Ordered HTML List:-
Starts with <ol> tag. Each list item starts with the <li> tag.
Lists items will be marked with numbers by default
<ol>
<li>mang<li/>
<li>apple<li/>
<li>banana<li/>
</ol>

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 21


3151606 Web Development Lab Manual 210280116092

Experiment No: 3

Create your class time table using table tag, experiment with rowspan, colspan,
cellspacing and cellpadding attributes.

Date:

Relevant CO: 2

Objectives:

1. To study HTML table tag


2. To study how to organize data in tabular format Theory:

HTML Table Tag

- 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.

L.D. COLLEGE OF ENGINEERING Page | 22


3151606 Web Development Lab Manual 210280116092
Code Output

<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%;

L.D. COLLEGE OF ENGINEERING Page | 23


3151606 Web Development Lab Manual 210280116092
}

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>

L.D. COLLEGE OF ENGINEERING Page | 25


3151606 Web Development Lab Manual 210280116092
Output:

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.

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 26


3151606 Web Development Lab Manual 210280116092

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:

Competency and Practical Skills:

Relevant CO: 2

Objectives:

1. To study HTML Link.

Theory:

HTML Links:

- Links allow users to click their way from page to page.


- User can click on a link and jump to another document.
- When you move the mouse over a link, the mouse arrow will turn into a little hand.
- Syntax o <a href="url"> link text </a> - Example
<a href=https://www.gecmodasa.ac.in/ target=”_blank”>Visit GEC
Modasa</a>
- links will appear as follows in all browsers:
o An unvisited link is underlined and blue o A visited link is underlined and
purple o An active link is underlined and red
- HTML Link Taget Attribute o By default, the linked page will be displayed in the
current browser window. To change this, you must specify another target for the link.
o The target attribute specifies where to open the linked document.
o The target attribute can have one of the following values:
 _self - Default. Opens the document in the same window/tab as it was
clicked
 _blank - Opens the document in a new window or tab
 _parent - Opens the document in the parent frame
 _top - Opens the document in the full body of the window
Implementation:

Design static web pages for your college containing a description of the courses, departments,
faculties, library etc. Provide links for navigation among pages.
\

L.D. COLLEGE OF ENGINEERING Page | 27


3151606 Web Development Lab Manual 210280116092
Fiile : College.html

<!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">Welcome To LDCE</div>


<div class="content">
<b>L. D. College of Engineering</b> endearingly known as <b>L.D.C.E</b> is
Ahmedabad’s premier engineering college situated at the city’s heart and
surrounded by elite organization like
<b>PRL, ATIRA, ISRO, IIM and CEPT</b>. Starting in 1948 to impart quality
higher education in various fields of engineering, it has seen
unprecedented growth. <br /><br />It is affiliated with Gujarat
Technological University & administrated by Department of Technical
Education, Government of Gujarat.
</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>

L.D. COLLEGE OF ENGINEERING Page | 28


3151606 Web Development Lab Manual 210280116092
</div>
</body>
</html>

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

L.D. COLLEGE OF ENGINEERING Page | 29


3151606 Web Development Lab Manual 210280116092
>
<a href="department.html" style="text-decoration: none"
><div class="headline">Departments</div></a
>

<a href="Faculties.html" style="text-decoration: none"


><div class="headline">Faculties</div></a
>
<a href="library.html" style="text-decoration: none"
><div class="headline">Library</div></a
>
</div>
<hr />
<div class="headline1">Courses Offered</div>
<ul class="course-list">
<li>Ai Ml</li>
<li>Automobile Engineering</li>
<li>Biomedical Engineering</li>
<li>Cemical 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 : 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>

L.D. COLLEGE OF ENGINEERING Page | 30


3151606 Web Development Lab Manual 210280116092
<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>

<a href="department.html" style="text-decoration: none;"><div


class="headline">Departments</div></a>
<a href="Faculties.html" style="text-decoration: none;"><div
class="headline">Faculties</div></a>
<a href="library.html" style="text-decoration: none;"><div
class="headline">Library</div></a>
</div><hr>

<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">

L.D. COLLEGE OF ENGINEERING Page | 31


3151606 Web Development Lab Manual 210280116092
<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
>
<a href="department.html" style="text-decoration: none"
><div class="headline">Departments</div></a
>
<a href="Faculties.html" style="text-decoration: none"
><div class="headline">Faculties</div></a
>
<a href="library.html" style="text-decoration: none"
><div class="headline">Library</div></a
>
</div>
<hr />

<div class="headline1">About feculties</div>

<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">

<div class="ldname">L.D. College of Engineering <div class="loc">Ahmedabad, 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>
<a href="department.html" style="text-decoration: none;"><div
class="headline">Departments</div></a>
<a href="Faculties.html" style="text-decoration: none;"><div
class="headline">Faculties</div></a>
<a href="library.html" style="text-decoration: none;"><div
class="headline">Library</div></a>
</div><hr>

<div class="headline1">About Library</div>

<div class="content">The library of a college is a hub of knowledge and resources that


supports the academic and research needs of students, faculty, and staff. It typically
houses an extensive collection of books, journals, periodicals,
and electronic databases spanning various disciplines. These resources are curated to
facilitate learning, research, and intellectual exploration.

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.

L.D. COLLEGE OF ENGINEERING Page | 33


3151606 Web Development Lab Manual 210280116092
Modern college libraries also offer digital services, including e-books, online journals,
and multimedia resources, enhancing accessibility and convenience. Specialized collections
and archives may exist to support research in specific fields or preserve historical
documents.

Libraries play a vital role in fostering a culture of learning and scholarship


on campus, and they serve as a cornerstone of academic life by promoting critical thinking,
information literacy, and the pursuit of knowledge. They are often seen as the heart of
intellectual exploration within a college community.
</div>

</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 {

width: calc(30% - 20px);


margin: 10px;
padding: 10px;
border: 1px solid #0c0c0c;
background-color: #f9f9f9;
text-align: center;
}

L.D. COLLEGE OF ENGINEERING Page | 35


3151606 Web Development Lab Manual 210280116092

Output:

L.D. COLLEGE OF ENGINEERING Page | 36


3151606 Web Development Lab Manual 210280116092

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:

1. Explain HTML Link target attribute.


a . By default, the linked page will be displayed in the current
browser window. To change this, you must specify another target for
the link.
b. The target attribute specifies where to open the linked
document.
c. The target attribute can have one of the following values:
i _self - Default. Opens the document in the same window/tab
L.D. COLLEGE OF ENGINEERING Page | 37
3151606 Web Development Lab Manual 210280116092
as it was clicked
ii _blank - Opens the document in a new window or tab
iii _parent - Opens the document in the parent frame
iv _top - Opens the document in the full body of the window
2. How to use image as a link ?
By adding the <img> tag inside an</img> tag inside an tag the browser can see that the image
should be clickable

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 38


3151606 Web Development Lab Manual 210280116092

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:

Competency and Practical Skills:

Relevant CO: 2

Objectives:

1. To study HTML Form Tag.


2. To Study Various Input Types like textbox, password, radio button, checkbox etc.
Theory:

HTML Forms are required, when .


- For example for registration you may collect information like user name , email ,
contact number, address etc.
- A form will take input from the site visitor and then will post it to a back-end
application such as CGI, ASP Script or PHP script etc.
- The back-end application will perform required processing on the passed data based
on defined business logic inside the application.
- There are various form elements available like text fields, textarea fields, drop-down
menus, radio buttons, checkboxes, etc.
- The HTML <form> tag is used to create an HTML form - Syntax :

<form action = "Script URL" method = "GET|POST">

form elements like input, textarea etc.

</form>

L.D. COLLEGE OF ENGINEERING Page | 39


3151606 Web Development Lab Manual 210280116092
- Important form attributes are as given below

- HTML Form Controls


Control Name Used for Sample Code

Text input control Textbox is used for


accepting text from
Single line text input user, like firstname, <input type = "text" name =
control lastname etc "first_name" />

Text input control Password input control


is used to accept
Password input password from user. < input type = "password" name =
control "password" />

Text input control Teaxtarea is used to


accept multiline text
Multiline input input , like comments. <textarea rows = "5" cols = "50"
control. name = "description">

Enter description here...

</textarea>

L.D. COLLEGE OF ENGINEERING Page | 40


3151606 Web Development Lab Manual 210280116092

Checkbox Control Checkboxes are used


<input type = "checkbox" name =
when more than one
"maths" value = “maths"> Maths
option is required to be
selected. <input type = "checkbox" name =
"physics" value = “physics"> name =
"password" />

Radio ton Radio buttons are used


Controls when out of many
<input type = "radio" name =
options, just one option
is required to be "subject" value = "maths"/> Maths
selected.
<input type = "radio" name =
"subject" value = "physics"/> Physics

Drop Down box provides option to list


Control down various options <select name = "dropdown">
in the form of drop
down list, from where a <option value = "Maths"
user can select one or selected>Maths</option>
more options.
<option value =
"Physics">Physics</option>

</select>

File Upload It allows site users to


upload a file to <input type = "file" name =
website.it is also known
"fileupload" accept = "image/*" />
as file select box.

Button Control This creates a button


that automatically
Submit submits a form.
<input type = "submit" name =
"submit" value = "Submit" />

L.D. COLLEGE OF ENGINEERING Page | 41


3151606 Web Development Lab Manual 210280116092
Button Control This creates a button
that automatically <input type = "reset" name =
Reset resets form controls to
"reset" value = "Reset" />
their initial values.

Button Control This creates a button <input type = "button" name =


that is used to trigger a
"ok" value = "OK" />
Button client-side script when
the user clicks that
button.

Button Control This creates a clickable


<input type = "image" name =
button but we can use
Image "imagebutton" src =
an image as
background of the "/html/images/logo.png" />
button.

Hidden Control Hidden form controls <input type = "hidden" name =


are used to hide data "pagename" value = "10" />
inside the page which
later on can be pushed
to the server. This
control hides inside the
code and does not
appear on the actual
page.

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 {

L.D. COLLEGE OF ENGINEERING Page | 42


3151606 Web Development Lab Manual 210280116092
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.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 for="dob">Date of Birth:</label>


<input type="date" id="dob" name="dob" 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

L.D. COLLEGE OF ENGINEERING Page | 43


3151606 Web Development Lab Manual 210280116092

/>
<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>

L.D. COLLEGE OF ENGINEERING Page | 44


3151606 Web Development Lab Manual 210280116092

Output :

L.D. COLLEGE OF ENGINEERING Page | 45


3151606 Web Development Lab Manual 210280116092

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:

1. Explain form tag with its attributes.


There are two attributes of the form tag that we should be
familiar
with: The action attribute points to the back-end of our web
page, which handles the
form submission. The method attribute is used to upload the
data. The most
commonly used attributes are the GET and POST methods

2. Differentiate between text input and password input controls.


text input controls − This control is used for items that require
only one
line of user input, such as search boxes or names. They are
created using
HTML <input> tag. Password input controls − This is also a
single-line text
input but it masks the character as soon as a user enters it.

3. Explain various types of buttons available in HTML. Suggested

Button:- The button is a clickable button


-> submit:- The button is a submit button (submits form-data).
-> reset:- The button is a reset button (resets the form-data to
its initial
values)

Rubric wise marks obtained:


Rubrics 1 2 3 Total

L.D. COLLEGE OF ENGINEERING Page | 46


3151606 Web Development Lab Manual 210280116092

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:

Competency and Practical Skills:

Relevant CO: 2

Objectives:

1. To study how to add audio and video content in html page.

Theory:

HTML Video

The HTML <video> element is used to show a video on a web page.

Example :

<video width="320" height="240" controls>


<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>

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>

L.D. COLLEGE OF ENGINEERING Page | 47


3151606 Web Development Lab Manual 210280116092

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>

L.D. COLLEGE OF ENGINEERING Page | 48


3151606 Web Development Lab Manual 210280116092
<audio controls src="sample-12s.mp3" type="audio/mpeg" class="ad"> Your browser does not
support the audio element.
</audio>
<audio controls src="sample-15s.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-6s.mp3" class="ad"> Your browser does not support the audio
element.
</audio>
<audio controls src="sample-15s.mp3" type="audio/mpeg" class="ad"> Your browser does not
support the audio element.
</audio>
<audio controls src="sample-6s.mp3" class="ad"> Your browser does not support the audio
element.
</audio>
</ul><br>
<a href="video.html" class="ls">Go to Video Page ></a>
</body>
</html>

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>

L.D. COLLEGE OF ENGINEERING Page | 50


3151606 Web Development Lab Manual 210280116092
Output:

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:

1 Explain audio and video tags.

1 .The HTML <video> element is used to show a video on a web page.


<video width=”320” height=”240” controls>
<source src=”movie.mp4” type=”video/mp4”>
<source src=”movie.ogg” type=”video/ogg”> Your browser does not support the video tag.
</video>

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>

L.D. COLLEGE OF ENGINEERING Page | 51


3151606 Web Development Lab Manual 210280116092

Rubric wise marks obtained:

Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 52


3151606 Web Development Lab Manual 210280116092

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:

Competency and Practical Skills:

Relevant CO: 2

Objectives:

1. To study frame and frameset to divide page multiple sections.


2. To understand about use of target attribute to open web page in target frame.
Theory:

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

To use frames on a page we use <frameset> tag instead of <body> tag.


The <frameset> tag defines, how to divide the window into frames. The rows attribute of
<frameset> tag defines horizontal frames and cols attribute defines vertical frames.
Each frame is indicated by <frame> tag and it defines which HTML document shall open into
the frame.
The <frameset> Tag Attributes

Example : example to create three horizontal frames

L.D. COLLEGE OF ENGINEERING Page | 53


3151606 Web Development Lab Manual 210280116092

<frameset rows = “10%,80%,10%”>


<frame name = “top” src = “./rows_demo_pages/top_frame.htm” />
<frame name = “main” src = “./rows_demo_pages/main_frame.htm” />
<frame name = “bottom” src = “./rows_demo_pages/bottom_frame.htm” />

<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>

L.D. COLLEGE OF ENGINEERING Page | 54


3151606 Web Development Lab Manual 210280116092
File : left_frame.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Left-Frame</title>
</head>
<body>
<section
style="
padding-left: 40px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; ">
<h3>Clink Any Button :</h3>
<div style="padding-left: 41px">
<div style="padding-top: 20px">
<a href="right_frame.html" target="content">Home</a>
</div>
<div style="padding-top: 20px">
<a href="pageA.html" target="content">Page - A</a>
</div>
<div style="padding-top: 20px">
<a href="pageB.html" target="content">Page - B</a>
</div>
</div>
</section>
</body>
</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>

L.D. COLLEGE OF ENGINEERING Page | 55


3151606 Web Development Lab Manual 210280116092
File : pageA.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>page A</title>
</head>
<body>
<div style="padding-top: 60px; text-align: center">
<h1>Welcome...</h1>
<hr />
<br />
<h3>All About Page - A :</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:

L.D. COLLEGE OF ENGINEERING Page | 56


3151606 Web Development Lab Manual 210280116092

Conclusion: (Sufficient space to be provided)


HTML file that defines the basic structure of web page. Within this HTML file, We can
create two frames, one for navigation and one for content. This is how We can divide whole
page into required number of frames and each frame

Quiz:

1. Explain about rows and cols attribute of frame tag.


Setting the rows attribute defines the number of horizontal subspaces in a frameset.
Setting the cols attribute defines the number of vertical subspaces. Both attributes
may be set simultaneously to create a grid.

2. Which tag embed an inline frame in a web page?


<iframe> tag specifies an inline frame.
3. Which attribute in frame tag is used to specifies the web page to load into that
frame?
The src attribute of the frame tag tells the browser which HTML page to load into that
frame.

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 57


3151606 Web Development Lab Manual 210280116092

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:

Competency and Practical Skills:

Relevant CO: 3

Objectives:

1. To understand how CSS works.

Theory:

Introduction To CSS

- CSS stands for Cascading Style Sheets


- CSS describes how HTML elements are to be displayed.
- CSS saves a lot of work. It can control the layout of multiple web pages all at once
- External stylesheets are stored in CSS files
- HTML was NEVER intended to contain tags for formatting a web page!. HTML was
created to describe the content of a web page.
- When tags like <font>, and color attributes were added to the HTML 3.2 specification,
it started a nightmare for web developers. Development of large websites, where fonts
and color information were added to every single page, became a long and expensive
process.
- To solve this problem, the World Wide Web Consortium (W3C) created CSS.
- CSS removed the style formatting from the HTML page! CSS Syntax

- A CSS rule-set consists of a selector and a declaration block:


- The selector points to the HTML element you want to style.
- The declaration block contains one or more declarations separated by semicolons.
- Each declaration includes a CSS property name and a value, separated by a colon.
- declaration blocks are surrounded by curly braces.

Example: In this example all <p> elements will be center-aligned, with a red text color

L.D. COLLEGE OF ENGINEERING Page | 58


3151606 Web Development Lab Manual 210280116092
Code Output

<!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; }

- The CSS id Selector

o The id selector uses the id attribute of an HTML element to select a specific


element.
o The id of an element is unique within a page, so the id selector is used to select
one unique element!

L.D. COLLEGE OF ENGINEERING Page | 59


3151606 Web Development Lab Manual 210280116092
o To select an element with a specific id, write a hash (#) character, followed by
the id of the element.

<!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>

L.D. COLLEGE OF ENGINEERING Page | 60


3151606 Web Development Lab Manual 210280116092
Example

- CSS Class Selector

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

L.D. COLLEGE OF ENGINEERING Page | 61


3151606 Web Development Lab Manual 210280116092
-

<!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>

- CSS Grouping Selector

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:

h1, h2, p { text-


align: center; color:
red;
}

- The CSS Pseudo Class Selector

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

L.D. COLLEGE OF ENGINEERING Page | 62


3151606 Web Development Lab Manual 210280116092

a : link { color: red} a : active { o


color: yellow} a : visited { color:
green} a : hover { font-weight:
bold} a : link : hover {font-
weight:bold}

- 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>

-CSS Background Color

- The background-color property specifies the background color of an element.


- With CSS, a color is most often specified by:

L.D. COLLEGE OF ENGINEERING Page | 63


3151606 Web Development Lab Manual 210280116092
o a valid color name - like "red" o a
HEX value - like "#ff0000" o an RGB
value - like "rgb(255,0,0)"

Example

body {
background-color: lightblue;
}

L.D. COLLEGE OF ENGINEERING Page | 64


3151606 Web Development Lab Manual 210280116092
:

-CSS Text Color

- text color can be set using color property Example:

<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:

L.D. COLLEGE OF ENGINEERING Page | 67


3151606 Web Development Lab Manual 210280116092

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:

1. Explain the syntax of the CSS.


A CSS Syntax rule consists of a selector, property, and its value
2. What is internal CSS ?
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 <style> tag inside the head section of the HTML file

3. Explain CSS class and Id selector.


The basic difference between ID and Class is that the ID selector is applied only to one
element in a page, whereas the class selector can be applied to several elements on a
single page
Rubric wise marks obtained:
Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 68


3151606 Web Development Lab Manual 210280116092

Experiment No: 9

Use Inline CSS to format your resume that you created in practical no 02.

Date:

Competency and Practical Skills:

Relevant CO: 3

Objectives:

1. To understand the use of Inline CSS.


Theory:

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);

L.D. COLLEGE OF ENGINEERING Page | 69


3151606 Web Development Lab Manual 210280116092
background-color: rgb(212, 235, 227);
}
.body {
font-family: Arial, Helvetica, sans-serif;
padding-left: 10%;
color: rgb(80, 55, 23);
background-color: antiquewhite;
}
</style>
<body>
<section class="head">
<p style="font-size: 27px">SvapnilKumar Rathod</p>
<p style="font-size: 15px">Full Stack Developer</p>
</section>
<hr />
<section class="body">
<h3>Personal Information :</h3>
<section style="padding-left: 40px">
<p><strong>Name : </strong>Rathod SvapnilKumar Rameshbhai</p>
<p><strong>Email ID : </strong>[email protected]</p>
<p><strong>Phone No : </strong>+91 8238245850</p>
</section>

<h3>Educational Information :</h3>


<ul>
<li>
Bachelor of Engineering in Information Technology - L.D.College Of
Engineering
</li>
<br />
<li>HSC - R.C.Patel school,Gandhinagar </li>
<br />
<li>SSC - R.C.Patel school,Gandhinagar </li>
</ul>

<h3>Professional Skills :</h3>


<ul>
<li>Programmer Analyst</li>
<br />
<li> Full Stack Web Developer</li>
<br />
<li>Data Science</li>
</ul>

<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:

1. Explain Internal CSS VS Inline CSS.


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 <style> tag inside the head section of
the HTML file.
-> 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.
2. CSS stands for .
Cascading Style sheet
3. Which HTML tag is used to define an internal style sheet?
<style> </style>

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 72


3151606 Web Development Lab Manual 210280116092

Experiment No: 10

Use External, Internal, Inline CSS to format Information Technology Department Web
Pages that you created in Practical No.04

Date:

Competency and Practical Skills:

Relevant CO: 3

Objectives:

1. To understand use of External


CSS Theory:
External CSS

• 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>

CSS Code : mystyle.css

L.D. COLLEGE OF ENGINEERING Page | 73


3151606 Web Development Lab Manual 210280116092
body {
background-color: lightblue;
}
h1 { color: navy;
margin-left: 20px;
}

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>

L.D. COLLEGE OF ENGINEERING Page | 75


3151606 Web Development Lab Manual 210280116092
Output:

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:

1. Explain External CSS.


External css is separated file than HTML file. And it linked externally to html program.
All css codes are written in this separated file which have extention .css . it is useful to
depart css code to understand and structure more properly
2. Compare Internal, Inline and External CSS.
Inline CSS: Inline CSS contains the CSS property in the body section attached to the
element is known as inline CSS. This kind of style is specified within an HTML tag using
the 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 <style> tag inside the head section of
the HTML file.

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

3. Which property is used to change the background color?


background-color: yellow ;
4. Which property is used to change the text color of the element?
color: yellow;

L.D. COLLEGE OF ENGINEERING Page | 76


3151606 Web Development Lab Manual 210280116092

Rubric wise marks obtained:


Rubrics 1 2 3 Total
Marks

L.D. COLLEGE OF ENGINEERING Page | 77


3151606 Web Development Lab Manual 210280116092

L.D. COLLEGE OF ENGINEERING Page | 78

You might also like