Web Page Designning 1
Web Page Designning 1
MISSION
To provide high quality technical and managerial manpower, information and
consultancy services to the industry and community to enable the industry and
community to face the changing technological & environmental challenges.
QUALITY POLICY
We, at MSBTE are committed to offer the best in class academic services to the students
and institutes to enhance the delight of industry and society. This will be achieved
through continual improvement in management practices adopted in the process of
curriculum design, development, implementation, evaluation and monitoring system
along with adequate faculty development programmes.
CORE VALUES
MSBTE believes in the following:
Semester-II
( AI/ AN/ BD/ CM/ CO/ CW/ DS/ HA/ IF/ IH )
Maharashtra State
Board of Technical Education, Mumbai
(Autonomous) (ISO 9001:2015) (ISO/IEC
27001:2013)
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION
Certificate
Seal of
Institution
Web Page Designing (312004)
Preface
The primary focus of any engineering laboratory/field work in the technical education
system is to develop the much needed industry relevant competencies and skills. With this in
view, MSBTE embarked on this innovative ‘K’ Scheme curricula for engineering
diploma programmes with outcome-based education as the focus and accordingly,
relatively large amount of time is allotted for the practical work. This displays the great
importance of laboratory work making each teacher, instructor and student to realize that
every minute of the laboratory time need to be effectively utilized to develop these
outcomes, rather than doing other mundane activities. Therefore, for the successful
implementation of this outcome-based curriculum, every practical has been designed to serve
as a ‘vehicle’ to develop this industry identified competency in every student. The practical skills
are difficult to develop through
‘Chalk and duster’ activity in the classroom situation. Accordingly, the ‘K’ scheme laboratory
manual development team designed the practical to focus on the outcomes, rather than
the traditional age old practice of conducting practical to ‘verify the theory’ (which may
become a byproduct along the way).
This laboratory manual is designed to help all stakeholders, especially the
students, teachers and instructors to develop in the student the pre-determined outcomes. It is
expected from each student that at least a day in advance, they have to thoroughly read
through the concerned practical procedure that they will do the next day and understand
the minimum theoretical background associated with the practical. Every practical in this
manual begins by identifying the competency, industry relevant skills, course outcomes and
practical outcomes which serve as a key focal point for doing the practical. The students will
then become aware about the skills they will achieve through procedure shown there and
necessary precautions to be taken, which will help them to apply in solving real-world
problems in their professional life.
Website design is a broad term that encompasses a wide variety of tasks, all involved
in the formation of web pages. There are essentially two types of web design approaches,
which are dynamic and static design. Static web design is typically based on basic HTML code.
i
Web Page Designing (312004)
It is essential for diploma student to learn HTML since the task of static website design is
performed
by using HTML coding. Even in dynamic websites, the task of presentation of content is handled
through HTML coding. This course introduce web page design using HTML and
also give emphasis on learning Cascading Style Sheets (CSS) which is a stylesheet
language used for describing the presentation of a document written in a mark- up
language for formatting and styling of content. This learning enables students to design static
web sites and host it on Internet/Intranet.
Although best possible care has been taken to check for errors (if any) in this
laboratory manual, perfection may elude us as this is the first edition of this manual.
Any errors and suggestions for improvement are solicited and highly welcome.
ii
Web Page Designing (312004)
PSO1. Modern Information Technology: Use latest technology for operation and
application of information.
- - -
iii
Web Page Designing (312004)
iv
Web Page Designing (312004)
13 √
Use of colors for links in
web page
14 √
Insert image on web page
foreground and background
with various attributes
15 √
Insert image with hyperlink
and set image width and
height property of image.
16 √
Work with different
background properties in
web page.
17 √
Work on HTML table in web
page
18 √
Create table within table and
insert images in tables.
19 √
Work on row and column
attributes of table.
20 √
HTML frame in web page
21 √
Create different elements in
web page.
22 √
Create CSS by applying style
sheets.
23 √
Work on RWD (Responsive
Web Design) Templates in
HTML
24 √
Hosting of website on open
source platform.
25 √
Create a web site to
represent portfolio
v
Web Page Designing (312004)
vi
Web Page Designing (312004)
Guidelines to Teachers
1. For incidental writing on the day of each practical session every student should maintain a
dated logbook for the whole semester, apart from this laboratory manual, which s/he has to
submit for assessment to the teacher in the next practical session.
2. Teachers should give opportunity to students for hands-on after the demonstration.
3. Assess the skill achievement of the students and COs of each unit.
4. Explain prior concepts to the students before starting of each experiment.
5. List of few sample questions for reference are given. Teachers must design more such
questions so as to ensure the achievement of identified CO.
6. Teacher should ensure that the practical skill and competencies are developed in the students
after the completion of the practical exercise.
7. Teacher may provide additional knowledge and skills to the students even though it’s not
covered in the manual but are expected from the students by the industries.
8. Teacher may suggest the students to refer additional related literature of the Technical papers/
Reference books/ Seminar proceedings, etc.
9. Teacher shall assess the performance of students continuously as per norms prescribed by
MSBTE.
10. During assessment teacher is expected to ask questions to the students to tap their
Achievements grading related knowledge and skills so that student can prepare while submitting
record of the practical focus should be given on development of enlisted skills rather than
theoretical knowledge.
vii
Web Page Designing (312004)
viii
Web Page Designing (312004)
Content Page
List of Practical and Progressive Assessment Sheet
Sr. Title of the Practical Page Date of Date of Assess Dated Remark
No. No Perfor submi ment sign. of s (if
mance ssion marks teacher any)
(50)
1 1
Work with basic
HTML
2 7
Use of heading tags in
web page
3 11
Work on paragraph in
web page
4 16
Work with block level
tags in web page
5 20
Work with text level
tags in web page
6 25
Implement the border
properties in web page
7 29
Use of special
characters in Web
page.
8 33
Work with ordered and
unordered List.
9 37
Create a web page to
use different types list
in web page.
10 42
Work on HTML web
page link.
11 48
Use of links in web
page.
12 52
Use of links with
images in web page
13 56
Use of colors for links
in web page
14 60
Insert image on web
page foreground and
background with
various attributes
ix
Web Page Designing (312004)
15 64
Insert image with
hyperlink and set
image width and
height property of
image.
16 68
Work with different
background properties
in web page.
17 73
Work on HTML table
in web page
18 77
Create table within
table and insert images
tables.
19 84
Work on row and
column attributes of
table.
20 89
HTML frame in web
page
21 98
Create different
elements in web page.
22 106
Create CSS by
applying style sheets.
23 112
Work on RWD
(Responsive Web
Design) Templates in
HTML
24 119
Hosting of website on
open source platform.
25 123
Create a web site to
represent portfolio
x
Web Page Designing (312004)
I Practical Significance
A web page is a HTML document accessible on the World
Wide Web (WWW).Hypertext Markup Language (HTML) is the
most commonly used markup language for creating web pages. This
practical is useful for creating web page using HTML, which display
a sample message.
HTML Attributes:
1
Web Page Designing (312004)
<body> Attributes
Paragraph Tag:
The <p> tag offers a way to structure your text into different paragraphs. Each
paragraph of text should go in between an opening <p> and a closing </p> tag.
Centering Content
You can use <center> tag to put any content in the center of the page or any table cell.
Preserve Formatting
Sometimes, you want your text to follow the exact format of how it is written in the
HTML document. In these cases, you can use the preformatted tag <pre>.
<html>
<head>
<title>Horizontal Line Example</title>
</head>
<body>
2
Web Page Designing (312004)
Step 4) Run this program using web browser with the path specified as follows:
“C:\Users\hp\3D Objects\Desktop\sample.html”
Output:
VII Exercises
1. Create a web page to display name of your college, address of college
and save the page with your name.
2. Create a web page by using structure tags to display “Welcome to
HTML World” and apply background color as yellow and text color as
per student choice.
3
Web Page Designing (312004)
IX Required Resources
Sr.
Name of Resource Major Qty. Remarks
No. Specification
Any desktop or One computer
1. Computer System laptop computer system for
with basic each student
configuration
Text editor, Web
2. Software Package
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in
computer system. Closely observe and remember the file
name and its folder.
XI Conclusion
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
4
Web Page Designing (312004)
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
5
Web Page Designing (312004)
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
6
Web Page Designing (312004)
I Practical Significance
The HTML heading tags are used to define the headings of a
page. Headings are important for highlighting the topics. Heading
tags provide valuable information and specifiers about the structure
of the document. Search Engines use headings for indexing the
structure and organizing the content of the webpage.
The HTML heading tag is used to define the headings of a page. There are
six levels of headings defined by HTML. These 6 heading elements are h1,
h2, h3, h4, h5, and h6; with h1 being the highest level and h6 being the least.
You can set the background color, text color and align of headings:
<h1 style="background-color:Blue;">Hello World</h1>
7
Web Page Designing (312004)
VII Exercises
1. Write HTML Code to set the background color, text color
of heading tag.
2. Create a web page to display string in center “Maharashtra
Board of Technical Education, Mumbai” using all heading
tags. (see the output.)
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
Any desktop or One computer
1 Computer System laptop computer system for
with each student
8
Web Page Designing (312004)
basic configuration
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in
computer system. Closely observe and remember the
file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
10
Web Page Designing (312004)
I Practical Significance
A paragraph is usually a block of text. A paragraph always
starts on a new line, and browsers automatically add some white
space (a margin) before and after a paragraph.
<p align="justify">
The <center>Maharashtra State Board of Technical Education
(MSBTE) </center>is an autonomous board of education in the state of
Maharashtra, India. It designs and implements <b>diploma </b>,
<i>post diploma </i>and <u>advanced diploma programs</u> to
affiliated institutions. Diploma courses are an excellent choice as they
allow transferable credits towards higher education such as a degree or
master's program.
MSBTE located at:
<pre>Government Polytechnic Building,
4th floor,
49, Kherwadi,
Bandra (E),
Mumbai-400 051.</pre>
<p>
The<strong> Maharashtra </strong>State Board of Technical
Education (MSBTE) is an autonomous board of education in
the state of Maharashtra, India.
</p>
12
Web Page Designing (312004)
</body>
</html>
Output:
VII Exercise
Design a Web Page to implement paragraph tag with following
formatting tags :<b>, <i>, <u>, <br>,<center>,<pre> and <hr>
IX Resources Required
Sr.
Name of Resource Major Specification Qty. Remarks
No.
Any desktop or One computer
1 Computer System laptop system for
computer with each
basic student
configuration
Text editor, Web
2 Software Package
browser
13
Web Page Designing (312004)
X Precautions to be Followed
1. Handle computer system with care.
2.Be cautious while performing files related operations in
computer system. Closely observe and remember the
file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
14
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
15
Web Page Designing (312004)
I Practical Significance
HTML uses block-level tags are used for designing a web
page. A block-level element always starts on a new line, and the
browsers automatically add some space (a margin) before and after
the element. This practical is useful for applying various tags like
Block Quote, Preformatted tag, Address tag and HR tag on web
page.
preformatted text.
</pre>
VII Exercise
Design a Web Page of your Department by using blockquote tag,
preformatted tag, address tag and applying attributes of HR tags.
IX Resources Required
Sr.
Name of Resource Major Specification Qty. Remarks
No.
Any desktop or One computer
1 Computer System laptop system for
computer with each
basic student
configuration
Text editor, Web
2 Software Package
browser
X Precautions to be Followed
1. Handle computer system with care.
17
Web Page Designing (312004)
…………………………………………………………………………….
……………………………………………………………………………..
…………………………………………………………………………….
……………………………………………………………………………..
…………………………………………………………………………….
……………………………………………………………………………..
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
19
Web Page Designing (312004)
I Practical Significance
HTML Text level tags are used to format the appearance of the text on web page.
The basic idea behind text formatting is to make a web page more attractive by
using tags like bold, italic or underline. There are several HTML elements that
are used for defining text with a special meaning. These are the parsed tag that
are used to display the importance of the text. This practical is useful for
formatting a text of a web page using text level tags.
Tag Description
<b>…</b> Text that appears within <b>...</b> element, is displayed in
bold.
<i> …</i> Text that appears within <i>...</i> element is displayed in
italic.
<u>…</u> Text appears within <u>...</u> element is displayed
with underline.
<tt>...</tt> The content of a <tt>...</tt> element is written in
monospaced font.
<strike>... Text that appears within <strike>...</strike> element is
</strike> displayed with strikethrough.
<sup>...</sup> The content of a <sup>...</sup> element is written in
superscript.
<sub>...</sub> The content of a <sub>...</sub> element is written in
20
Web Page Designing (312004)
subscript.
<div>…</div> The <div> elements allow to group together several
elements to create sections or subsections of a page.
Example:
<html>
<body>
</body>
</html>
Output:
VII Exercise
<html>
<body>
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>
21
Web Page Designing (312004)
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
Any desktop or One computer
1 Computer System laptop computer system for
with each student
basic configuration
Text editor, Web
2 Software Package
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in
computer system. Closely observe and remember the html file name
and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
22
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
23
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
24
Web Page Designing (312004)
I Practical Significance
The HTML border attribute is used to set the visible border
width to most HTML elements within the body. Adding borders
around elements on a web page is an important feature of web
design. Borders can be used to separate the contents of a web page,
making it easier for user to interpret the information presented on
the page. This practical is useful for applying border to web page, to
specific paragraph or to specific elements in html.
The CSS border properties are used to specify the style, color and size of the
border of an element. The CSS border properties are given below:
border-style
border-color
border-width
border-radius
There are some border style values, which are used with border-style
Property to define a border.
Value Description
dashed It is used to define a dashed border.
solid It is used to define a solid border.
double It defines two borders with the same border-width value.
dotted It is used to define a dotted border.
25
Web Page Designing (312004)
Example:
<html>
<head>
aa
</head>
<body style="border:double;">
<p style="border:double;">Double border.</p>
<div style="border:1px solid black;"> HELLO </div>
</body>
</html>
VII Exercise
Design a web page to apply border to paragraph and web page with different
border styles.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
Any desktop or One computer
1 Computer System laptop computer system for
with each student
basic configuration
Text editor, Web
2 Software Package
browser
X Precautions to be Followed
3. Handle computer system with care.
4. Be cautious while performing html files related operations in
computer system. Closely observe and remember the html file name
and its folder.
26
Web Page Designing (312004)
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
27
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
28
Web Page Designing (312004)
I Practical Significance
Special characters are specific pieces of HTML code
designed to display characters that are used in the HTML code or to
include characters that are not found on the keyboard in the text the
viewer sees. This practical is used for special characters in
paragraphs.
You can insert various Emojis are characters from the UTF-8 character set.
<html>
29
Web Page Designing (312004)
<body>
<p>I will display 😀</p>
<p>I will display 😎</p>
</body>
</html>
Output:
<html>
<body>
<p>I will display ©;</p>
<p>I will display ©</p>
<p>I will display® </p>
<p>I will display ®</p>
</body>
</html>
Output:
VII Exercises
<html>
<body>
<p>I will display ∃</p>
<p>I will display ∅</p>
<p>I will display ∑ </p>
30
Web Page Designing (312004)
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
Any desktop or One computer
1 Computer System laptop computer system for
with each student
basic configuration
Text editor, Web
2 Software Package
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in
computer system. Closely observe and remember the html file name
and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
31
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
32
Web Page Designing (312004)
I Practical Significance
Lists are used to create a well-structured and easy-to-
maintain document. It is group of related pieces of information and
clearly associated with each other, which are more accessible. This
practical is useful for organizing contents of the page by
implementing different types of Lists.
<ul>…</ul> An unordered list. This will list items using plain bullets.
<ol>…</ol> An ordered list. This will use different schemes of
numbers to list your items.
Example
<html>
<body>
<ol>
<li>First item</li>
33
Web Page Designing (312004)
<li>Second item</li>
<li>Third item</li>
</ol>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>
Output:
1. First item
2. Second item
3. Third item
Item 1
Item 2
Item 3
VII Exercises
1) Write HTML code for following output using different types of lists.
34
Web Page Designing (312004)
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No. Specification
1 Computer System Any desktop One
or laptop computer
computer with system
basic configuration fo
r
each student
2 Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in
computer system. Closely observe and remember the html
file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
35
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
36
Web Page Designing (312004)
Practical No.9: Create a web page using Different types of Lists in HTML
I Practical Significance
HTML lists allow web developers to group a set of related items in
lists. A list is a record of short pieces of related information or used
to display the data or any information on web pages in the ordered
or unordered form. This practical is used for organizing the data into
various list formats.
<ul>…</ul> An unordered list. This will list items using plain bullets.
<ol>…</ol> An ordered list. This will use different schemes of numbers
to list your items.
<dl>…</dl> A definition list. This arranges your items in the same way
as they are arranged in a dictionary.
<dt>…</dt> Defines a term in a description list.
37
Web Page Designing (312004)
Type Description
type="1" The list items will be numbered with numbers (default)
type="A" The list items will be numbered with uppercase letters
type="a" The list items will be numbered with lowercase letters
type="I" The list items will be numbered with uppercase roman
numbers
type="i" The list items will be numbered with lowercase roman
numbers
Type Description
type="disc" Sets the list item marker to a bullet (default)
type="circle" Sets the list item marker to a circle.
type="square" Sets the list item marker to a square
type="none" The list items will not be marked
Example 1):
<html>
<head>
<title>Nested list</title>
</head>
<body>
<p>List of Indian States with thier capital</p>
<ol>
<li>Delhi
<ul>
<li>NewDelhi</li>
</ul>
<li>Maharashtra
<ul>
<li>Mumbai</li>
</ul>
</li>
<li>Uttarpradesh
<ul>
<li>Lucknow</li></ul>
</li>
38
Web Page Designing (312004)
</ol>
</body>
</html>
Output:
Example 2)
<html>
<body>
<h2>A Description List</h2>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</body>
</html>
Output:
VII Exercises
1) Create ordered list within unordered list.
2) Create unordered list within ordered list.
3) Create ordered list within ordered list.
39
Web Page Designing (312004)
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No. Specification
1 Computer System Any desktop or One
laptop computer computer
with basic system for
configuration each student
2 Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in
computer system. Closely observe and remember the html
file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
40
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
41
Web Page Designing (312004)
I Practical Significance
Hyperlink is an element in HTML document that is used to
link one web page to another web page or different web page. This
practical is useful to link different web pages of same site, link
different locations on the same web page as well as specific location
on different web page of same site.
Hyperlink:
The <a > Tag: The anchor element is used to create hyperlinks
between a source anchor and a destination anchor. The source is the
text, image, or button that links to another resource and the
destination is the resource that the source anchor links to.
42
Web Page Designing (312004)
The Most Important Anchor Attributes: There are anchor attributes to create
functional hyperlinks. These attributes are href, target. An href can do a lot more
than just link to another website.
It can be used to link directly to any element on a web page that has been
assigned an id.
It can be used to link to a resource using a protocol other than http.
It can be used to run a script.
Example:
Adding a target attribute and _blank attribute to the link will tell the visitor’s browser
to open the link in a new (blank) browser tab or window to render that code in the
browser, when a visitor clicks the link, which will open in a new tab.
43
Web Page Designing (312004)
Procedure to create hyperlink to take you to another location of the same HTML
document
Create following html page with code:
<html>
<head>
<title>How to create a hyperlink to take you to another location of the same HTML
document</title>
</head>
<body>
<a href="#bottom">Go the bottom</a>
<p id="up">Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen book. It
has survived not only five centuries, but also the leap into electronic typesetting, remaining
essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently with desktop publishing software like
Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
44
Web Page Designing (312004)
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen book. It has survived
not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.
<a href="#up"></p><p id="bottom">Bottom</p>
</body>
</html>
VII Exercise
Create web pages for different branches of your college Link them on the
home page. Apply linking within a page and linking a specific location within
different pages.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
1 Computer System Any desktop or One
laptop computer computer
with basic system for
configuration each student
2 Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in computer
45
Web Page Designing (312004)
system. Closely observe and remember the file name and its
folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
3. How to create a hyperlink to take you to another part of the same HTML document?
46
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
47
Web Page Designing (312004)
I Practical Significance
When creating a website, there are several things one must have on each
Web page. HTML links are one of those things. HTML links do a variety of
things for website. Without HTML links one can't have a "website" and can't
show visitors more information on the subjects that one want to talk about.
There are 3 major types of HTML links; external links, internal links, and
links within the same page. External HTML links are those HTML links that go
to another website. Email and color tag for links are also used in this process.
This practical demonstrate the use of hyperlink in a web page.
Link to email ID allows visitors to send email from your website. It is easy for
48
Web Page Designing (312004)
your visitors to send questions or comments. While using <a> tag as an email
tag, you will use mailto:email address along with href attribute.
Following code combine all the options and allow visitor to send email with the
address, subject and text already entered.
VII Exercise
Write a HTML code to link an external page of different web sites like
yahoo.com or google.com using URL and link web page to your mail address.
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in computer
system. Closely observe and remember the file name and its
folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
49
Web Page Designing (312004)
50
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
51
Web Page Designing (312004)
I Practical Significance
Images and graphics can be embedded into pages. It improves the
appearance of the web pages. We can add image as a link and
other HTML elements as a link. A link is a connection from one Web page to
another web page. This practical is useful for inserting an image in web page
and formatting the images with various attributes.
Attributes Description
src The ‘src’ attribute contains a path pointing to the image which is
inserted into the page.
alt The ‘alt’ attribute is a mandatory attribute which specifies an
alternate text for an image, if the image cannot be displayed.
Attributes Description
Example:
<html
<head>
</head>
<body>
<a href="https://msbte.org.in/" target="_blank">
<img border=”5” alt="Mumbai Worli" height=200 width=200 src="mumbai.jpg">
</a>
</body>
</html>
Run above code and click on image, it will open msbte.org.in web site.
VII Exercise
Design a web page using images and apply image-formatting attributes on it.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
1. Computer System Any desktop or One
laptop computer computer
with system for
basic configuration each student
53
Web Page Designing (312004)
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in computer
system. Closely observe and remember the html file name and its
folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
54
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
55
Web Page Designing (312004)
I Practical Significance
There are three major types of HTML links; external links, internal links,
and links within the same page. External HTML links are those HTML links
that go to another website. When users visit any link, user can differentiate
visited links with different color.
Example
<html>
<head>
<style>
a:link { color: green;}
a:visited {color: pink;}
a:hover {color: blue;}
a:active {color: yellow;}
</style>
56
Web Page Designing (312004)
</head>
<body>
</body>
</html>
VII Exercise
Write a HTML code to link an external page of different web sites like
yahoo.com or google.com using URL and link web page to your mail address.
Apply tags to change colors of links.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
1 Computer System Any desktop or One
laptop computer c omputer
with basic system for
configuration each student
2 Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in computer
system. Closely observe and remember the file name and its
folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
57
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
59
Web Page Designing (312004)
Practical No.14: Insert image on web page foreground and background with
various attributes.
I Practical Significance
Image can be set as a background in a web page to make site more attractive.
This practical demonstrate the use of image for linking web page with other web
page and as background in web pages.
<body background=“mypattern.gif”>
Example:
<html>
<body background="bangalore.jpg">
<p>A background image for a p element:</p>
<p style="background-image: url('mumbai.jpg');">
You can specify background images<br>
for any visible HTML element.<br>
In this example, the background image<br>
is specified for a p element.<br>
By default, the background-image<br>
will repeat itself in the direction(s)<br>
where it is smaller than the element<br>
where it is specified. (Try resizing the<br>
browser window to see how the<br>
background image behaves.
</p>
</body>
</html>
VII Exercise
Design a web page to set any image as a background and foreground to the page.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
1 Computer System Any desktop or One
laptop computer computer
with basic system for
configuration each student
2 Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in computer
61
Web Page Designing (312004)
system. Closely observe and remember the html file name and its
folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
62
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
63
Web Page Designing (312004)
Practical No.15: Insert image with hyperlink and set image width and height
property of image.
I Practical Significance
Images and graphics can be embedded into pages. It improves the
appearance of the web pages. This practical is useful for inserting an image in
web page and formatting the images with height and width attributes.
Attributes Description
64
Web Page Designing (312004)
Example:
<html>
<head>
</head>
<body>
<a href="https://msbte.org.in/" target="_blank">
<img border=”5” alt="Mumbai Worli" height=200 width=200
src="mumbai.jpg">
</a>
</body>
</html>
Run above code and click on image, image will appear as per height and width and
when user clicks on that image, it will open msbte.org.in web site.
VII Exercise
Design a web page using images and apply image-formatting attributes on it.
IX Resources Required
Sr.
Name of Resource Major Qty. Remarks
No.
Specification
1. Computer System Any desktop or One
laptop computer computer
with basic system for
configuration each student
2. Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing html files related operations in computer
system. Closely observe and remember the html file name and its
folder.
XI Conclusion
…………………………………………………………………………………
…………………………………………………………………………………
65
Web Page Designing (312004)
66
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
67
Web Page Designing (312004)
I Practical Significance
Using background properties such as colors, gradients, images, and patterns can
enhance the visual appeal of a web page. This practical demonstrates the different
background properties in web page.
Syntax:
<body background="URL">
68
Web Page Designing (312004)
Example:
<html>
<head>
<title>
HTML body Background Attribute
</title>
</head>
<body background="rk.png">
<h1>Hello All</h1>
<h2>HTML
<body> background Attribute
</h2>
Welcome to Web Page Designing
</body>
</html>
Output:
Setting the background color of a web page or an element on the web page, enable us to
create unique layouts for the web page.
To set the background color in HTML, use the style attribute, with the CSS property
69
Web Page Designing (312004)
HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add
background color. The bgcolor attribute deprecated in HTML5.
We can change the background color by overriding the property with the other property.
Syntax:
<body style="background-color:red;">
Example:
<html>
<body style="background-color:red;">
<h1>HTML Articles</h1>
</body>
</html>
Output:
VII Exercise
Create a web page with background properties:
Set the background color of the page to line n.
Set border to h1 tag.
Set background image to a page and to a paragraph.
70
Web Page Designing (312004)
IX Required Resources
X Precautions to be Followed
Handle computer system with care.
Be cautious while performing files related operations in computer system.
Closely observe and remember the file name and its folder.
XI Conclusion
…………………………………………………………………………………
…………………………………………………………………………………
71
Web Page Designing (312004)
………………………………………………………………………………………………………
…………………….…………………………………………………………………………………
……………………………………………………………………….………………………………
…………………………………………………………………………………………………….…
………………………………………………………………………………………………………
…………………………………….…………………………………………………………………
…………………………………………………………………………….…………………………
………………………………………………………………………………………………………
…………….…………………………………………………………………………………………
…………………………………………………….…………………………………………………
………………………………………………………………………………………….……………
………………………………………………………………………………………………………
……………………….………………………………………………………………………………
………………………………………………………………………….……………………………
……………………………………………………………………………………………………….
………………………………………………………………………………………………………
……………………………………….………………………………………………………………
XIII References / Suggestions for further Reading Software/Learning Websites
1. https://www.w3schools.com/css/css3_backgrounds.asp
2. https://www.geeksforgeeks.org/css-background/
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
72
Web Page Designing (312004)
I Practical Significance
HTML Table is an arrangement of data in rows and columns in tabular format. Tables
are useful for various tasks such as presenting text information and numerical data. A
table is a useful tool for quickly and easily finding connections between different types
of data. Tables are also used to create databases. This practical demonstrates the use of
tables in we page.
In HTML, table is represented with the <table> tag. Each table row is defined with
the <tr> tag. A table heading is defined with the <th> tag. By default, table headings
are bold and centered. A table data/cell is defined with the <td> tag. Use rowspan
and colspan tags.
73
Web Page Designing (312004)
<table>
<tr>
<th>Name</th>
<th>Class</th>
<th>Marks</th>
</tr>
<tr>
<td>ABC</td>
<td>FY</td>
<td>50</td>
</tr>
</table>
VII Exercise
1) Create a mark sheet of first semester using table tag.
Write HTML code for above exercise on the blank pages attached at
the end of practical.
IX Resources Required
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely
observe and remember the file name and its folder.
74
Web Page Designing (312004)
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
76
Web Page Designing (312004)
Practical No.18: Create table within table and insert images in tables.
I Practical Significance
Nested tables can be effective for presenting complex data sets in a structured
format. Placing images within tables, helps organize content visually, especially when
presenting data or information alongside corresponding images. This practical
demonstrate table within the table and how images are inserted into table in a we page.
This practical is expected to develop the following skills for the industry-
identified competency ‘Develop static interactive websites.
77
Web Page Designing (312004)
Example:
<html>
<head>
<title>Nested Tables</title>
<style>
table table {
border: 2px solid blue;
}
td {
padding: 10px;
text-align: center;
}
</style>
</head>
<body>
<h1 style="color: green;">Nested Tables</h1>
<table border="2">
<tr>
<td>Table 1</td>
<td> Table 1
<table border="2">
<tr>
<td>Table 2</td>
<td>Table 2</td>
</tr>
<tr>
<td>Table 2</td>
<td>Table 2</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Table 1</td>
<td>Table 1</td>
</tr>
</table>
</body>
</html>
78
Web Page Designing (312004)
Output:
<html>
<body>
<table border="4px">
<tr>
<th>Sr. No.</th>
<th>Name</th>
<th>Photo</th>
</tr>
<tr>
<td>1</td>
<td>Rose</td>
<td><img height="100" src="rose.jpg" width="100"></td>
</tr>
</table>
</body>
</html>
79
Web Page Designing (312004)
Output:
VII Exercise
80
Web Page Designing (312004)
IX Resources Required
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely
observe and remember the file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
81
Web Page Designing (312004)
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
82
Web Page Designing (312004)
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
83
Web Page Designing (312004)
I Practical Significance
The row and column attributes of a table in HTML is essential for creating well-
structured, visually appealing tables that effectively communicate information to
users. This practical demonstrates the use of colspan and rowspan attribute of table
tag in web page.
This practical is expected to develop the following skills for the industry identified.
competency ‘Develop static interactive websites.
An HTML table consists of one <table> element and one or more <tr>, <th>, and
<td> elements.
The <tr> element defines a table row, the <th> element defines a table header, and
the <td> element defines a table cell.
<html>
<head>
<style>
table, th, td {
84
Web Page Designing (312004)
</body>
85
Web Page Designing (312004)
</html>
Output:
VII Exercise
Develop a web page following web site page.
IX Resources Required
86
Web Page Designing (312004)
X Precautions to be Followed
1. Handle computer system with care.
2 Be cautious while performing files related operations in computer system.
Closely observe and remember the file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
87
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
88
Web Page Designing (312004)
I Practical Significance
HTML frames provide flexibility in designing the layout of a webpage.
By dividing the browser window into frames, developers can arrange
content in different sections, such as a navigation frame, a main content
frame, and a sidebar frame. The practical show that, how web browser
window is divided into columns and rows using frame and frameset tag.
This practical is expected to develop the following skills for the industry
identified competency ‘Develop static interactive web-sites’.
1. Describe <frameset> and <frame> tag.
2. Use different form attributes
<frameset> tag
HTML <frameset> tag is used to contain the group of frames which can be
controlled and styled as a unit. The <frameset> element also specifies the
number of rows and columns in the frameset, and how much space they will
occupy in a frame.
Syntax
<frameset cols=" ">............</frameset>
<frame> tag
HTML <frame> tag defines the particular area within an HTML file
where another HTML web page can be displayed.
89
Web Page Designing (312004)
A <frame> tag is used with <frameset>, and it divides a webpage into multiple sections or
frames, and each frame can contain different web pages.
Syntax:
< frame src = "URL" >
Example 1
Create Vertical frames:
<html>
<head>
<title>Frame tag</title>
</head>
<frameset cols="25%,75%">
<frame src="frame1.html" >
<frame src="frame2.html">
</frameset>
</html>
Frame1.html:
<html>
<head>
<style>
div{
background-color: #7f4dd4;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is first frame</h2>
</div>
</body>
</html>
90
Web Page Designing (312004)
Frame2.html:
<html>
<head>
<style>
div{
background-color: #ff45fd;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is Second frame</h2>
</div>
</body>
</html>
Output:
91
Web Page Designing (312004)
Example 2:
Create Horizontal frames:
<html>
<head>
<title>Frame tag</title>
</head>
<frameset rows=”30%, 70%”>
<frame name=”top” src=”frame1.html” >
<frame name=”main” src=”frame2.html”>
</frameset>
</html>
Frame1.html:
<html>
<head>
<style>
div{
background-color: #7f4dd4;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is first frame</h2>
</div>
</body>
</html>
92
Web Page Designing (312004)
Frame 2.html:
<html>
<head>
<style>
div{
background-color: #ff45fd;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is Second frame</h2>
</div>
</body>
</html>
Output:
Note: Do not use HTML <frameset> element as it is deprecated and not supported by
HTML5, but you can use <iframe> tag instead.
HTML iframes
An HTML iframe embeds another document within the current HTML document
93
Web Page Designing (312004)
The webpage content and iframe contents can interact with each other using
JavaScript.
Syntax:
<iframe src="URL"></iframe>
Example:
<html>
<body>
<h2>HTML Iframes example</h2>
<p>Use the height and width attributes to specify the size of the iframe:</p>
<iframe src="https://msbte.org.in/" height="300" width="400"></iframe>
</body>
</html>
Output:
VII Exercise
Develop a web page following web site page.
94
Web Page Designing (312004)
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely
observe and remember the file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
1) https://www.tutorialspoint.com/html/html_frames.htm
96
Web Page Designing (312004)
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
97
Web Page Designing (312004)
I Practical Significance
An HTML form is a section of a document which contains controls such as text
fields, password fields, checkboxes, radio buttons, submit button, menus etc. An HTML
form facilitates the user to enter data that is to be sent to the server for processing such as
name, email address, password, phone number, etc. This practical demonstrates how to
create different form elements in a web page to submit the user-entered information.
An HTML form is used to collect user input. The user input is most often
sent to a server for processing.
<form> element:
The HTML <form> element is used to create an HTML form for user input:
98
Web Page Designing (312004)
Syntax:
<form>
.
formelements
.
</form>
Type Description
<input type="text"> Displays a single-line text input field
<input type="radio"> Displays a radio button (for selecting one of
many choices)
<input type="checkbox"> Displays a checkbox (for selecting zero or more
of many choices)
<input type="submit"> Displays a submit button (for submitting the
form)
<input type="button"> Displays a clickable button
Text Fields:
The <input type="text"> defines a single-line input field for text input.
Example:
<html>
<body>
<h2>Text input fields</h2>
<form>
<input type="text" id="fname" name="fname"
value="abc"><br>
<input type="text" id="lname" name="lname"
value="xyz">
</form>
</body>
</html>
99
Web Page Designing (312004)
Output:
Radio Buttons :
Example:
<html>
<body>
<h2>Radio Buttons</h2>
<p>Choose your favorite City:</p>
<form>
<input type="radio" id="mumbai" name="fav_language" value="Mumbai">
<label for="mumbai">Mumbai</label><br>
<input type="radio" id="delhi" name="fav_language" value="Delhi">
<label for="delhi">Delhi</label><br>
<input type="radio" id="kerla" name="fav_language" value="Kerla">
<label for="kerla">Kerla</label>
</form>
</body>
</html>
100
Web Page Designing (312004)
Output:
Checkboxes:
The <input type="checkbox"> defines a checkbox.
Checkboxes let a user select ZERO or MORE options of a limited number of choices.
Example:
<html>
<body>
<h2>Checkboxes</h2>
<p>The <strong>input type="checkbox"</strong> defines a checkbox:</p>
<form>
<input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">
<label for="vehicle1"> I have a bike</label><br>
<input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
<label for="vehicle2"> I have a car</label><br>
<input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
<label for="vehicle3"> I have a boat</label><br><br>
</form>
</body>
</html>
101
Web Page Designing (312004)
Output:
The <input type="submit"> defines a button for submitting the form data to a form-handler.
The form-handler is typically a file on the server with a script for processing input data.
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="abc"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="xyz"><br><br>
<input type="submit" value="Submit">
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called
"/action_page.php".</p>
</body>
</html>
102
Web Page Designing (312004)
Output:
VII Exercise
Develop a web page following web site page.
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
103
Web Page Designing (312004)
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer
system. Closely observe and remember the file name and its folder.
XI Conclusion
……………………………………………………………………………
……………………………………………………………………………
XII Practical Related Questions
Note: Below given are few sample questions for reference. Teachers must
design more such questions so as to ensure the achievement of identified CO.
1) Develop a web page for student registration form.
2) Develop a web page for login page.
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
104
Web Page Designing (312004)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
105
Web Page Designing (312004)
I Practical Significance
Cascading Style Sheet (CSS) is a simple mechanism of describing how
documents are presented on screens. Cascading Style Sheets (CSS) provide easy
and effective alternatives to specify various attributes for the HTML tags. This
practical demonstrate the use of CSS and improves in content accessibility.
This practical is expected to develop the following skills for the industry
identified competency ‘Develop static interactive web-sites’.
1. Describe the basic syntax and structure of CSS.
2. Use internal, external and inline CSS.
3. Apply styles to background, text, fonts and other HTML components.
CSS stands for Cascading Style Sheets and it is the language used to style the visual
presentation of web pages. CSS is the language that tells web browsers how to render
the different parts of a web page.
CSS Syntax- CSS syntax includes selectors, properties, values, declarations,
declaration blocks, rulesets, at-rules, and statements.
A selector is a code snippet used to identify the web page element or
elements that are to be affected by the styles.
A property is the aspect of the element that is to be affected. For
example, color, padding, margin, and background are some of the
most commonly used CSS properties.
A value is used to define a property. For example, the property color
might be given the value of red for example: color: red;.The
combination of a property and a value is called a declaration.
106
Web Page Designing (312004)
An Example of CSS Syntax- Let’s use a block of CSS to clarify what each
of these items is.
h1 {
color: red;
font-size: 3em;
text-decoration: underline;
}
color, font-size, and text-decoration are all properties. There are literally hundreds
of CSS properties that can use, but only a few dozen are commonly used. The color
property can use a color keyword or a color formula in Hex, RGB, or HSL format.
In this case, the color keyword red. There are a few dozen color keywords available
in CSS3, but millions of colors can be accessed with the other color models. The
value of 3em to the property font-size. There are a wide range of size units we
could have used including pixels, percentages, and more. Finally, the value
underline to the property text-decoration. The overline or line-through can be used
as values for text-decoration. In addition, CSS3 allows for the use of the line- styles
solid, double, dotted, dashed, and wavy was well the specification of text-
decoration colors.
107
Web Page Designing (312004)
That code would cause just that heading to render with red underlined text and 10 pixels
of padding on all sides. There are very few instances where inline styles should be used.
In nearly all cases they should be avoided and the styles added to a stylesheet.
Internal Stylesheets
The earlier examples in this tutorial make use of internal stylesheets. An internal
stylesheet is a block of CSS added to an HTML document head element.
The style element is used between the opening and closing head tags, and all CSS
declarations are added between the style tags.
<head>
<style>
h1 {
color: red;
padding: 10px;
text-decoration: underline; }
</style>
</head>
<body>
<h1>Example Heading</h1>
</body>
That code would produce the same results as the inline styles. However, the benefit to
using internal stylesheets rather than inline styles is that all h1 elements on the page
will be affected by the styles.
External Stylesheets
External stylesheets are documents containing nothing other than CSS statements. The
rules defined in the document are linked to one or more HTML documents by using
the link tag within the head element of the HTML document.
108
Web Page Designing (312004)
h1 {
color: red;
padding: 10px;
text-decoration: underline;
}
Now that we have an external stylesheet with some styles, we can link it to an HTML
document using the link element.
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Example Heading</h1>
</body>
When this HTML document is loaded the link tag will cause the styles in the file styles.css
to be loaded into the web page. As a result, all level 1 heading elements will appear with
red text, underlined, and with 10 pixels of padding applied to every side.
VII Exercise
1) Create a web page for demonstration of CSS by applying internal style, external and
inline style
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
109
Web Page Designing (312004)
X Precautions to be followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely
observe and remember the file name and its folder.
XI Conclusion
………………………………………………………………………
………………………………………………………………………
………………….……………………………………………………………………………………
………………………………………………………….……………………………………………
………………………………………………………………………………………………….……
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
111
Web Page Designing (312004)
I Practical Significance
RWD templates ensure that websites are accessible and functional on a wide range of
devices, including desktops, laptops, tablets, and smartphones. Instead of developing
separate versions for various devices, RWD allows for a single development effort that
caters to diverse screen sizes. This practical helps student for creating websites that
are versatile, user-friendly, cost-effective, and adaptable to the ever-changing
landscape of web technologies and devices.
This practical is expected to develop the following skills for the industry
identified competency ‘Develop static interactive web-sites’.
112
Web Page Designing (312004)
It is called responsive web design when you use CSS and HTML to resize, hide,
shrink, enlarge, or move the content to make it look good on any screen.
.row::after {
content: "";
clear: both;
display: table;
}
[class*="col-"] {
float: left;
padding: 15px;
}
html {
font-family: "Lucida Sans", sans-serif;
}
.header {
background-color: #9933cc;
113
Web Page Designing (312004)
color: #ffffff;
padding: 15px;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 7px;
background-color: #33b5e5;
color: #ffffff;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.menu li:hover {
background-color: #0099cc;
}
.aside {
background-color: #33b5e5;
padding: 15px;
color: #ffffff;
text-align: center;
font-size: 14px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.footer {
background-color: #0099cc;
color: #ffffff;
text-align: center;
font-size: 12px;
padding: 15px;
}
114
Web Page Designing (312004)
<div class="header">
<h1>Chania</h1>
</div>
<div class="row">
<div class="col-3 col-s-3 menu">
<ul>
<li>The Flight</li>
115
Web Page Designing (312004)
<li>The City</li>
<li>The Island</li>
<li>The Food</li>
</ul>
</div>
<div class="col-6 col-s-9">
<h1>The City</h1>
<p>Chania is the capital of the Chania region on the island of Crete. The city can be divided in two
parts, the old town and the modern city.</p>
</div>
<div class="col-3 col-s-12">
<div class="aside">
<h2>What?</h2>
<p>Chania is a city on the island of Crete.</p>
<h2>Where?</h2>
<p>Crete is a Greek island in the Mediterranean Sea.</p>
<h2>How?</h2>
<p>You can reach Chania airport from all over Europe.</p>
</div>
</div>
</div>
<div class="footer">
<p>Resize the browser window to see how the content respond to the resizing.</p>
</div>
</body>
</html>
Output:
116
Web Page Designing (312004)
VII Exercise
Write HTML code for above exercise on the blank pages attached at the end of
practical.
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely
observe and remember the file name and its folder.
XI Conclusion
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
…………………….…………………………………………………………………………………
…………………………………………………………….…………………………………………
………………………………………………………………………………………………….……
………………………………………………………………………………………………………
………………………………….……………………………………………………………………
…………………………………………………………………………………….…………………
………………………………………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
118
Web Page Designing (312004)
I Practical Significance
Web hosting services are offered free of cost to all, for publishing
website on internet. Advantage of such hosting service is their cost
effectiveness. Policy may vary from one hosting service provider to
another. The website owner gets the free space on the server, free sub-
domain name for accessing website and global reach over the World
Wide Web. This practical helps student to host website on internet.
IV Practical Outcome
Create a website and host on open source.
119
Web Page Designing (312004)
Install the Operating System: Access your Droplet via SSH and
follow the instructions to install the chosen Linux distribution.
II Exercise
1) Write steps to publish website
2) Explain the procedure to configure a webserver and hosting the given website.
120
Web Page Designing (312004)
practical.
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
X Precautions to be Followed
1) Handle computer system with care.
2) Be cautious while performing files related operations in computer system. Closely observe
and remember the file name and its folder.
XI Conclusion
………………………………………………………………………………………………………
………………………………………………………………………………………………………
XII Practical Related Questions
Note: Below given are few sample questions for reference. Teachers
must design more such questions so as to ensure the achievement of
identified CO.
1) Create your own website and publish on GitHub.
2) Create a blog and publish it
………………….……………………………………………………………………………………
………………………………………………………………………………………………………
…………………………….…………………………………………………………………………
…………………………………………………………………….…………………………………
………………………………………………………………………………………………………
….……………………………………………………………………………………………………
…………………………………………………….…………………………………………………
………………………………………………………………………………….……………………
………………………………………………………………………………………………………
………………….……………………………………………………………………………………
………………………………………………………….…………
XIII References / Suggestions for further Reading Software/Learning Websites
1. https://www.geeksforgeeks.org/how-to-host-a-website-on-github-for-free/
2. https://careerfoundry.com/en/blog/web-development/how-to-host-a-website-for-free/
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
122
Web Page Designing (312004)
I Practical Significance
A portfolio website provides a centralized and easily accessible
platform to showcase your projects, work samples, and achievements.
It allows potential employers, clients, or collaborators to see the range
and quality of your work. This practical is useful for creating a portfolio
website is a practical and powerful way to present your skills,
experiences, and achievements, fostering professional growth and
opening doors to new opportunities.
The portfolio can have the same purpose as a CV. Most CVs are written with text,
while the portfolio is for showcasing, so it is visual with images and often more
detailed than the CV.
Typical roles that use portfolios are professionals such as, but no limited to:
Software developers
UX designers
Graphic designers
Photographers
Marketing professionals
123
Web Page Designing (312004)
Architects
Writers
HTML, CSS and JavaScript are the foundational languages to create a website.
You can come a long way just using these three!
Create the structure with HTML. The first thing you have to learn, is HTML,
which is the standard markup language for creating web pages.
Style with CSS. The next step is to learn CSS, to set the layout of your web page
with beautiful colors, fonts, and much more.
Make it interactive with JavaScript. After studying HTML and CSS, you should
learn JavaScript to create dynamic and interactive web pages for your users.
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is a another paragraph.</p>
</body>
</html>
124
Web Page Designing (312004)
.topnav {
overflow: hidden;
background-color: #333;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
125
Web Page Designing (312004)
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #04AA6D;
color: white;
}
</style>
</head>
<body>
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
</div>
<div style="padding-left:16px">
<h2> Navigation Example</h2>
<p> content..</p>
</div>
</body>
</html>
126
Web Page Designing (312004)
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
127
Web Page Designing (312004)
.hero-image {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("cartoon.avif");
height: 90%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
}
.hero-text button {
border: none;
outline: 0;
display: inline-block;
padding: 10px 25px;
color: black;
background-color: #ddd;
text-align: center;
cursor: pointer;
}
.hero-text button:hover {
background-color: #555;
color: white;
}
</style>
</head>
<body>
<div class="hero-image">
<div class="hero-text">
<h1 style="font-size:50px">I am Cartoon</h1>
<p>And I'm a Photographer</p>
<button>Hire me</button>
</div>
128
Web Page Designing (312004)
</div>
<p>Page Content..</p>
</body>
</html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
}
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
.column {
float: left;
width: 33.3%;
margin-bottom: 16px;
padding: 0 8px;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
margin: 8px;
}
.about-section {
padding: 50px;
text-align: center;
background-color: #474e5d;
color: white;
}
.container {
padding: 0 16px;
}
.container::after, .row::after {
content: "";
clear: both;
display: table;
130
Web Page Designing (312004)
.title {
color: grey;
}
.button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
}
.button:hover {
background-color: #555;
}
<div class="about-section">
<h1>About Us Page</h1>
<p>Some text about who we are and what we do.</p>
<p>Resize the browser window to see that this page is responsive by the way.</p>
</div>
<h2>ABC</h2>
<p class="title">CEO & Founder</p>
<p>Some text that describes me </p>
<p>[email protected]</p>
<p><button class="button">Contact</button></p>
</div>
</div>
</div>
<div class="column">
<div class="card">
<img src="cartoon1.avif" alt="Mike" style="width:100%">
<div class="container">
<h2>XYZ</h2>
<p class="title">Art Director</p>
<p>Some text that describes me </p>
<p>[email protected]</p>
<p><button class="button">Contact</button></p>
</div>
</div>
</div>
<div class="column">
<div class="card">
<img src="cartoon2.avif" alt="John" style="width:100%">
<div class="container">
<h2>PQR</h2>
<p class="title">Designer</p>
<p>Some text that describes me </p>
<p>[email protected]</p>
<p><button class="button">Contact</button></p>
</div>
</div>
</div>
</div>
</body>
</html>
132
Web Page Designing (312004)
*{
box-sizing: border-box;
}
/* Style inputs */
input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical;
}
input[type=submit] {
background-color: #04AA6D;
color: white;
padding: 12px 20px;
border: none;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
134
Web Page Designing (312004)
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each
other instead of next to each other */
@media screen and (max-width: 600px) {
.column, input[type=submit] {
width: 100%;
margin-top: 0;
}
}
</style>
</head>
<body>
<div class="container">
<div style="text-align:center">
<h2>Contact Us</h2>
<p>leave us a message:</p>
</div>
<div class="row">
<div class="column">
<img src="map.avif" style="width:100%">
</div>
<div class="column">
<form action="/action_page.php">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Your name..">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Your last name..">
<label for="country">Country</label>
<select id="country" name="country">
<option value="India">India</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
</select>
<label for="subject">Subject</label>
135
Web Page Designing (312004)
</body>
</html>
<!DOCTYPE html>
<html>
<head>
136
Web Page Designing (312004)
<div class="footer">
<p>Footer</p>
</div>
</body>
</html>
137
Web Page Designing (312004)
VII Exercises
1. Create your own portfolio.
2. Create portfolio for any organization.
IX Resources Required
Sr. Name of Resource Major Specification Qty. Remarks
No.
Any desktop or laptop One computer
1. Computer System computer with basic system for
configuration each student
2. Software Package Text editor, Web
browser
X Precautions to be Followed
1. Handle computer system with care.
2. Be cautious while performing files related operations in computer system. Closely observe
and remember the file name and its folder.
XI Conclusion
………………………………………………………………………………………………………
………………………………………………………………………………………………………
XII Practical Related Questions
Note: Below given are few sample questions for reference. Teachers must design more such
questions to ensure the achievement of identified CO.
1. Define portfolio.
2. List different sessions available in portfolio.
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
Dated Sign of
Marks obtained
Teacher
Process Product
Total(50)
Related(30) Related(20)
139
Web Page Designing (312004)