WEB PROGRAMMING Lab Manual
WEB PROGRAMMING Lab Manual
Problem Statement :-
Create an html page named as “: Basic_Html_Tags.html” Add the following tags detail.
1. Set the title of the page as “Basic Html Tags”
2. Within the body perform the following
c) Paragraph
d) Horizontal line
e) Line Break
f) Block Quote
g) Pre tag
h) Different Logical Style ( <b>, <u>, <sub>, <sup>....)
i) Different Physical style ( <code>, <del>, <kbd>...)
j) Listing tags ( 2 types with, & each type provide different “type” attribute)
<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>
Formatting and Fonts:
<br> - break tag – makes output on the next line.
<p> - paragraph tag – places a blank line before the line it is on. <hr> - horizontal tag – creates a line or horizontal rule.
<pre> - preformatted tag - enables one to embed text that is already formatted . <i> - Italic font
<b> - Bold font
<em> - Emphasis
<sup> - Superscript
<sub> - Subscript
Font Size:
<font> tag and <h....> tag
<h1> - 24 pt <font size=7> - 36 pt
<h2> - 18 pt <font size=6> - 24 pt
<h3> - 12 pt <font size=5> - 18 pt
<h4> - 12 pt bold <font size=4> - 12 pt bold <h5> - 10 pt <font size=3> - 12 pt plain <h6> - 7 pt <font size=2> - 9 pt
Text alignment:
1. Set background color and text color - <body bgcolor=”blue” text=”red”> <body bgcolor=”#800000”>
2. Set text color only - <font color=”brown”>
Output
Exp No: 2 : Html Tags (List, Table)
Aim: To create a simple html file to demonstrate the use of different tags.
<ol> <li>java</li>
<li>perl</li>
<li>c++</li>
</ol>
<h4>Letters list:</h4> <ol type="A">
</ol>
<h4>Lowercase letters list:</h4> <ol type="a" start="2">
</ol>
<li>SITTTR</li>
</ol>
<h4>Lowercase Roman numbers list:</h4> <ol type="i" start="4" >
<li>Computer Engg.</li>
<li>Mechanical Engg.</li>
<li>Electronics Engg.</li>
</ol>
Problem Statement :-
T308</td>
gcolor="silver">Wednesday</th>
OLSPAN =2 bgcolor="yellow"><center>ELETIVE - I</td>
T0306</td>
T310</td>
T304</td>
T308</td>
OUN</td>
gcolor="silver">Thursday</th>
T302</td>
T0304</td>
OLSPAN=2><center>PD0302</td>
OLSPAN=3 bgcolor="green"><center>IT0320/IT0322</td>
gcolor="silver">Friday</th>
T0308</td>
T0306</td>
T0308</td>
T0302</td>
OLSPAN=2 bgcolor="red"><center>ELECTIVE - I</td>
td>
y>
e>
y>
>
SITTTR
ame:image.html
SITTTR
</form>
</body>
</html>
Result :-
The above scripts are successfully executed and obtained desired output.
Output
Exp No: :-
3 : Html Tags (Form)
Aim: To create a simple html file to demonstrate the use of different tags.
1. Create an html page named as “frames.html”. Divide the page into two columns of 20%, 80% size. In 20% size call
the hyperlinks for “navigationframes.html”, “floatingframes.html”, “mixedframe.html”, “noframe” and make the
page to be get displayed on the other column when these links are clicked.
ating frame, and in floating frame include the any html file created in the above exercise as
ine.
eate an html page named as “ mixedframe.html” . Divide the page into two columns of 25% &
% size. In 25% display an image and divide the 75% into two rows. (50% & 50%). In the first
% display the video file created in previous exercise and other 50% the time table created in
WEB PROGRAMMING Lab Manual Page 34 of 124
evious exercise.
<frameset cols=” 40%,* > https://gptcthirurangadi.in
<frame name=” frame1” src=” pattern.html” />
war e Requir ements:
2. Create
Pentium IV with<framean html RAM,
name=”
2 GB page named
frame2” asGB
160src=” “navigationframe.html”.
banner.html”
HARD Disk, /> Monitor Divide1024*
the page intocolor
768 two columns
60Hz of 40%, 60% size. In 40%
size call the
</frameset>
war e Requir ements: hyperlink file created in above exercise , and make the page to be get displayed on the other column
Windows / whenWEBthe
Linux link is clicked.
operating
PROGRAMMING system Any BrowserLab Manual Page 34 of 124
3. Create anam
Pr ogr html page named as “floatingframes.html”. In this file include a paragraph to explain floating frame, and
https://gptcthirurangadi.in
in<frameset
floating cols=”
frame 40%,*the
include > any html file created in the above exercise as inline.
y: <frame
4. Create an name=”
In notepadhtmltype frame1”
pagethenamed
src=” pattern.html” /> . Divide the page into two columns of 25% & 75% size. In 25%
as “mixedframe.html”
necessary code & save with the file name mentioned with .html extension.
<frame name=” frame2” src=”
display an image and divide the 75% banner.html”
into two />
rows. (50% & 50%). In the first 50% display the video file created in
es and Fr amesets:
</frameset>
previous
a web page into File exercise
Name:
rows and and
3home_fr
columnsother 50%
ame.html the time table created in previous exercise.
<html>
Pr ogram
<body> WEB Technology
<a href="3navigationframes.html"Author: target="two">navigation frame</a><br><hr>
In notepad type the necessary code & save with the file name mentioned with .html extension.
<a href="3floatingframe.html" target="two">floating
Date: frame</a><br><hr>
<a href="3frames.html" target="two">no frame</a><br><hr>
TOC File Name: 3home_fr ame.html
<a href="3mixedframe.html" target="two">mixed frame</a><br><hr>
<html>
1.Link1
</body>
<body>
2.Link2
</html>
<a href="3navigationframes.html" target="two">navigation frame</a><br><hr>
. <a href="3floatingframe.html" target="two">floating CONTENT
frame</a><br><hr>
. <a href="3frames.html" target="two">no frame</a><br><hr>
<a href="3mixedframe.html" target="two">mixed frame</a><br><hr>
ain parts are: <frameset>,
</body> <frame> and </frameset>
</html> tag is either “ rows” or “ cols” , which
tribute of <frameset> Frame declares the divisions either in terms
els or percentage size.
utes of <frame> tag:
– indicates the name of the frame.
name of source file to be displayed in the frame.
ple:1
eset rows=” 100,150,* ” >
e name=” frame1” src=” pattern.html” />
e name=” frame2” File src=”
Name:banner.html”
3fr ames.html />
e name=” frame3” src=”
<html> buttons.html” />
meset> <frameset cols="20%,* " scrolling="no" noresize>
ple:2 <frame name="one" src="3home_frame.html" />
<frame name="two" /> SITTTR
</frameset>
File Name: 3fr ames.html
</html>
<html> Navigation Frame
<frameset cols="20%,* " scrolling="no" noresize>
<frame name="one" src="3home_frame.html" />
<frame name="two" />
</frameset>
</html>
WEB PROGRAMMING Lab Manual Page 35 of 124
File Name: 3navigationfr ames.html https://gptcthirurangadi.in
<html>
<frameset cols="40%,* " scrolling="no" noresize>
<frame name="one" src="pagelink.html"></frame>
<frame name="two" ></frame> Floating Frame
</frameset> </html>
<html>
<body> iframe
<p>Frames divide a browser window into two or more separate pieces or panes, with each pane
containing a separate web page. One of the key advantages that frames offer is that we can load and
reload single panes without having to reload the entire contents of the browser window. A collection
of frames in the browser window is known as a frameset . A frameset divides the window into rows
and columns (rather like a table). The simplest of framesets might just divide the screen into two
rows, whereas a complex frameset could use several rows and columns.
<p>There is also a special kind of frame called an iframe which is a single window that can sit
anywhere inside a page.
<p>If a user ’ s browser does not support frames, the contents of the noframes element should be
displayed to the user.A body element should be placed inside the noframes element because if a
browser does not understand the frameset element, it should ignore the frameset element and the
noframes element, then display what is inside the body element contained in the noframes
element.<p>
</body>
</html>
Exp No: 5 : Map
Aim: To create an html page with different types of image map such as circle, rect , poly & mixed map.
Problem Statement :
1. To display an image on the website and construct a map for all circle buttons, develop the "dialler.html" HTML
page. When you click on a circle, a message with a button number, such as "you push button 1," will appear.
Exp No: 6 : : Inline, Internal and External Style sheets
Aim: To create an html file by applying the different styles using inline, external & internal style sheets.
Problem Statement :-
1. Create a external style sheet named as “external_css.css” and provide some styles for h2, hr, p & a tags.
2. Create an html file named as “4Style_sheet.html”
1. Include the external style sheet with necessary tag.
2. Include the internal style sheet for body tags & also use class name, so that the style can be applied for all
tags.
3. Include a <p> tags with inline style sheet.
Theory:
Basic syntax:
selector {property:value; property:value; .....}
selector => identifier of the element
e.g.
body {background : yellow; color : yellow}
p {font-family: “Times New Roman”; font-size: 14px}
h1,h3 {color : red}
CSS Selectors
In CSS, selectors are patterns used to select the element(s) you want to style.
Q6b. Output
Q6C. Output