Web Design MANUAL Merged
Web Design MANUAL Merged
Web Design MANUAL Merged
of
Computer Applications
WEB DESIGN
LAB MANUAL
(BCA V Semester)
14. Create a web page which divides the page in two equal
frames and place the audio and video clips in frame-1 and
frame-2 respectively.
15. Create a web page which should generate following output:
FRAME-
FRAME-
1 2
FRAME-
3
16. Create a web page using Embedded CSS and multimedia.
INTRODUCTION TO HTML
Web site: A set of interconnected web pages, usually including a homepage, generally
located on the same server, and prepared and maintained as a collection of information by a
person, group, or organization.
Web Page: A web page is a document that's created in html that shows up on the internet
when you type in or go to the web page's address.
The major web browsers are Google Chrome, Firefox, Internet Explorer, Opera, and Safari.
1
WEB DESIGN LAB MANUAL
Web Server
Web server refers to either the hardware (the computer) or the software (the computer
application) that helps to deliver web content that can be accessed through the Internet.
The most common use of web servers is to host websites, but there are other uses such as
gaming, data storage or running enterprise application.
Personal: It is created by an individual for his /her own personal need.URL has tidle(~).
2
WEB DESIGN LAB MANUAL
<html>
<head>
</head>
<body>
</body>
</html>
URL: A uniform resource locator (URL), also known as web address, is a specific character
string that constitutes a reference to a resource. In most web browsers, the URL of a web
page is displayed on top inside an address bar. An example of a typical URL would be
"http://en.example.org/wiki/Main_Page".
WWW: The World Wide Web (WWW) is a system of interlinked hypertext documents
accessed via the Internet. With a web browser, one can view web pages that may contain
text, images, videos, and other multimedia, and navigate between them via hyperlinks.
3
WEB DESIGN LAB MANUAL
4
WEB DESIGN LAB MANUAL
Exercises
1. Design a page having suitable background colour and te t colour ith title M First
Web Page using all the attributes of the Font tag.
Procedure:
<html >
<head>
<title>My first web page</title>
</head>
<body bgcolor="green">
<font size="16" color="white" face="Arial"> Welcome to AITS, TIRUPATI...</font>
</body>
</html>
***************output***************
2. Create a HTML document giving details of your [Name, Age], [Address, Phone] and [Register
Number, Class] aligned in proper order using alignment attributes of Paragraph tag.
Procedure:
<html>
<head>
<title>program 02</title>
</head>
<body>
<p align="center">
Name: AITS<br>
Age: 16
</p>
<p align="right">
Address: Aghraharam post TIRUPATI<br> Phone:
123535615
</p>
<p align="left">
Reg No:
20AK1A0501<br>
Class:2nd Sem C s
</p>
</body>
</html>
****************output*************
8
WEB DESIGN LAB MANUAL
3. Write HTML code to design a page containing some text in a paragraph by giving
suitable heading style.
Procedure:
<html>
<head>
<title>program 03</title>
</head>
<body>
<center>
<h1>Basic Web design Lab</h1>
</center>
<h2 align="left"> Definition </h2>
<h3 align="left">Website</h3>
<p>
A set of inter connected web pages usually including a home page and many other web pages
</p>
</body>
</html>
**************output**************
9
WEB DESIGN LAB MANUAL
4. Create a page to show different character formatting (B, I, U, SUB, SUP) tags.
p
viz : log b m = p logb m
Procedure:
<html>
<head>
<title>program 04</title>
</head>
<body>
<p> <b> <i> log</i></b> <sub>b </sub>m<sup> p</sup> =p<b> <i> log </i>
</b><sub>b</sub> m</p>
</body>
</html>
**************output**************
10
WEB DESIGN LAB MANUAL
5. Write HTML code to create a Web Page that contains an Image at its centre.
Procedure:
1. Go to start ->all program >accessories-> notepad
2. Type the html code
3. Include <img> tag inside <center> tag and set align attribute of img tag to middle
4. Go to file->save->save the file with html extension
5. Run the html code using browsres
<html>
<head>
<title>program 05</title>
</head>
<body>
<center>
<img src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample
Pictures\Winter.jpg" height="200" width="200" align="middle"/>
</center>
</body>
</html>
***************output***************
11
WEB DESIGN LAB MANUAL
6. Create a web page with an appropriate image towards the left hand side of the page,
when user clicks on the image another web page should open.
Procedure:
1. Go to start >all programs-> accessories->notepad
2. Include<img> tag inside<a> tag
3. Save the file as p1.html
4. Create another file
5. Type the html code
6. Save the file as p2.html
7. In <a> tag assign p2.html to href attribute
8. Go to file-> save->save the file with html extension
9. Run the html code using browsers
<html>
<head>
<title>program 05</title>
</head>
<body>
<a href="p2.html">
<img src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample
Pictures\Winter.jpg" align="left" width="200" height="200"/>
</a>
</body>
</html>
P2.html
<html>
<head>
<title>program 06</title>
</head>
<body> Hi Welcome... </body>
</html>
12
WEB DESIGN LAB MANUAL
******************output******************
13
WEB DESIGN LAB MANUAL
7. Create web Pages using Anchor tag with its attributes for external
links. Procedure:
1. Go to start->all programs->accessories->notepad.
2. Create file called as p1.html
3. To provide external link between p1.html and gmail website use <a> in p1.html and mention
url of gmail website in href attribute.
4. Save the file.
5. Run the p1.html file using browsers.
6. If we click on the link it should link to gmail website.
P1.html
<html>
<head><title>page 1</title>
</head>
<body>
<p>Welcome to AITS</p>
<a href="http://www.gmail.com">click here to link gmail website</a>
</body>
</html>
****************output*******************
14
WEB DESIGN LAB MANUAL
8. Create a web page for internal links; when the user clicks on different links on the web
page it should go to the appropriate locations/sections in the same page.
Procedure:
1. Go to start->all programs->accessories->notepad.
2. Type the html code.
3. First give name for the each section of the page by using name attribute of the <a>tag
(i.e <a name= home > </a>)
4. To provide link for the sections use href= #name of section in<a> tag.
5. Go to file->save >save the file with .html extension.
6. Run the html code using browsers.
Note: Include paragraph means, include some text paragraph in <p> tag
<html>
<head><title>program 8</title></head>
<body>
<a name="home"></a>
<p>include paragraph
</p>
<h1>contents</h1>
<a href="#link1">History</a><br>
<a href="#link2">Html version</a><br>
<a name="link1"></a>
<p>include paragraph
</p><br>
<a name="link2"></a>
html versions
<p>include paragraph
</p></br>
<a href="#home">home</a>
</body>
</html>
15
WEB DESIGN LAB MANUAL
*********output************
16
WEB DESIGN LAB MANUAL
9. Write a HTML code to create a web page with pink color background and display
moving message in red color.
Procedure:
1. Go to start->all programs->accessories->notepad
2. Type the html code
3. Include bgcolor= pink attribute in the body tag
4. Use font tag to display moving text in red color by setting color= red attribute
5. Include marquee tag inside font tag to display moving text
6. Go to file >save->save the file with html extension
7. Run the html code using browser
<html>
<head>
<title>program 09</title>
</head>
<body bgcolor="pink">
<font color="red"><marquee direction="left">
Welcome to AITS TIRUPATI</marquee></font>
</body>
</html>
***********************output************
1
WEB DESIGN LAB MANUAL
10. Create a web page, showing an ordered list of all second semester courses
(Subjects) Procudure:
1. Go to start->all programs->accessories->notepad
2. Type the html code
3. Use <ol> ---- </ol> tag to display ordered list of all subject
4. Inside <ol>tag use <li> -- </li> tag to list each subject
5. Go to file >save->save the file with html extension
6. Run the html code using browser
<html>
<head>
<title>program 09</title>
</head>
<body>
<ol>
<li>English </li>
<li>Maths-2</li>
<li>Digital Electronics & computer
fundamentals</li> <li>Basic Web design lab</li>
<li>multimedia lab</li>
<li>digital electronics</li>
</ol>
</body>
</html>
***************output****************
18
WEB DESIGN LAB MANUAL
11. Create a web page, showing an unordered list of names of all the Diploma Programmes
(Branches) in your institution.
Procedure:
1. Go to start- >all programs- >accessories->notepad
2. Type the html code
3. Use <ul>....... </ul> tag to display unordered list of names of all the branches
4. Inside <ul>.....</ul> tag use <li> ....</li> tag to list each branch
5. Go to file >save > save the file with html extension
6.Run the html code using browser
<html>
<head>
<title>program 11</title>
</head>
<body>
<ul>
<li> Computer science and Engg </li>
<li> Electronics and communication </li>
<li> Civil Engg </li>
<li> Mechanical Engg</li>
</ul>
</body>
</html>
***************output********************
19
WEB DESIGN LAB MANUAL
12. Create a HTML document containing a nested list showing a content page of any
book.
Procedure:
1. Go to start->all programs->accessories->notepad.
2. Type the html code.
3. Include <ol>tag for naming the chapter of the contents page.
4. Within the previous <ol>tag includes another <ol> tag to mention the different section of
the particular chapter.
5. Use <li> tag for adding the list items.
6. Go to file->save >save the file with html extension.
7. Run the html code using browsers.
<html>
<head><title>program 12</title>
</head>
<body>
<ol type=1>
<li>chapter 1</li>
<ol type=1>
<li>section one</li>
<li>section two</li>
</ol type=1>
<li>chapter 2</li>
<ol type=1>
<li>section one</li>
<li>section two</li>
</ol>
</ol>
</body>
</html>
**************output************
20
WEB DESIGN LAB MANUAL
Procedure:
1. Go to start- all programs- accessories-notepad
2. Type the html code
3. Use<table>...</table> tag to draw table
4. Create 3 rows in the table by using <tr>...</tr> tag
5. In the first row create table heading by using <th>.......</th>tag
6. In the next 2 rows add the data by using <th>. ... </th>tag
7. Go to file >save->save the with.html extension]
8. Run the html file using firefox browser
<html>
<head>
<title>program 13</title>
</head>
<body>
<table border= "1">
<tr>
<th> reg.number</th>
<th> student name</th>
<th> year/semester </th>
<th>date of admission</th>
</tr>
<tr>
<td> 20AK1A0501</td>
<td> suma</td>
<td> 2nd</td>
<td> 06/06/2012 </td>
</tr>
<tr>
<td> 20AK1A0502 </td>
<td> xyz</td>
<td>2nd</td>
<td> 07/07/2012 </td>
</tr>
</table>
</body>
</html>
****************output********************
22
WEB DESIGN LAB MANUAL
14. Create a web page which divides the page in two equal frames and place the audio
and video clips in frame-1 and frame-2 respectively.
FRAME-1 FRAME-2
Procedure:
1. Go to start- >all programs-> accessories->notepad
2. Type the html code
3. Use<frameset> tag to divide the webpage into 2 equal frames by setting cols = *,* attribute
4. In the first frame place audio clip by using <frame> tag
5. In the second frame place video clip by using another <frame>
tag Note : audio & video & file should be in same folder
6. Go to file >save >save the file with html.extension
7. Run the html file using Firefox browser
<html>
<frameset cols="*,*">
<frame src="Horse-neighing.mp3">
<frame src="ARRRRR Horse.mp4-2.mp4">
</frameset>
</html>
******************output*****************
23
WEB DESIGN LAB MANUAL
FRAME-2
FRAME-1
FRAME-3
Procedure:
1. Go to start- >all programs-> accessories->notepad
2. Type the html code
3. Use<frameset> tag to divide the webpage into 2 equal frames by setting cols = *,*
attribute
4. In the first frame place video clip by using <frame> tag
5 .Again divide the second frame into 2 equal rows using rows= 50%,50% in
another frameset tag
6 Place one audio and video clip in other 2 frames.
<html>
<frameset cols="*,*">
<frame src="ARRRRR Horse.mp4-2.mp4" name="left">
<frameset rows="50%,50%">
<frame src="Horse-neighing.mp3" name="topright">
<frame src="ARRRRR Horse.mp4-2.mp4" name="topbuttom">
</frameset>
</frameset>
</html>
********************output**********************
<html>
<body>
<style>
body {
background-color:blue;
}
h1 {
color:orange;
text-align:center;
}
p{
font-family: "Times New Roman";
font-size: 20px;
}
</style>
<h1>My First CSS Example</h1>
<p>This is a audio.</p>
<audio controls>
<source src="Horse-neighing.mp3">
</audio>
</body>
</html>
25
WEB DESIGN LAB MANUAL
*****************output*******************
26
17. Use tables to provide layout to your HTML page describing your college infrastructure.
Procedure:
1.Go to start- >all programs-> accessories->notepad
2.Type the html code
3.Use<table> tag to make table
4.Use<tr> tag to make table row
5.Use<td> tag for inserting table data
6. Use bgcolor to heading tag to make background color to pink and Use colspan = "2" to make merge
of 2 columns.
7. Valign=”top” to make table row data in the top
8.Go to file –>save –>save the file with html extension
9.Run the html file using Firefox browser or Chrome
Program:
<html>
<head>
</head>
<body>
<tr>
</td>
</tr>
<b>DEPARTMENTS</b><br><br>
3.CIVIL ENGINEERING<br>
</td>
</td>
</tr>
<tr>
<center>
Department of CSE
</center>
</td>
</tr>
</table>
</body>
</html>
Output:
18. Use <span>and <div> tags to provide a layout to the above page instead of a table layout.
Procedure:
1. Go to start- >all programs-> accessories->notepad
2. Type the html code
3. <span> tag is an inline container used to mark up a part of a text,
4. we use <span> tag to change the color of the text in the particular position in the
program.
5. <div> tag defines a division or a section in an HTML document.
6. With the help of div tag we created class and call the style elements form the head with
.(dot) Specifier and class name
7. Add necessary styles in <style> tag that may reflected to class
8. Go to file –>save –>save the file with html extension
9. Run the html file using Firefox browser or Chrome
Program:
<!DOCTYPE html>
<html>
<head>
<style>
.myDiv {
background-color: lightblue;
text-align: center;
</style>
</head>
<body>
<div class="myDiv">
</div>
<p>My mother has <span style="color:blue;font-weight:bold">blue</span> eyes and my father has <span
style="color:darkolivegreen;font-weight:bold">dark green</span> eyes.</p>
</html>
OUTPUT:
19. Use frames such that page is divided into 3 frames 20% on left to show contents of pages,
60% in center to show body of page, remaining on right to show remarks.
Procedure:
Frames
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
<frameset cols="20%,*">
<frame src="left-frame.html">
<frameset rows="60%,*">
<frame src="right-top-frame.html">
<frame src="right-bottom-frame.html">
</frameset>
</frameset>
</html>
Output:
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
<body>
<h1>CONTENTS</h1>
<ul>
<li>Chapter-1</li>
<li>Chapter-2</li>
<li>Chapter-3</li>
<li>Chapter-4</li>
<li>Chapter-5</li>
<li>Chapter-6</li>
<li>Chapter-7</li>
<li>Chapter-8</li>
<li>Chapter-9</li>
</ul>
</body>
</html>
Output:
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
Output:
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
<body>
<h1>Bottom Frame</h1>
powered by TargetOrate
</body>
</html>
Output:
20. Embed Audio and Video into your HTML web page.
Procedure:
Program:
Save as audi_video.html
<html>
<head><title>AUDIO/VIDEO</title>
<style>
body{
background-image:url('huts.jpg');
background-size:100% 100%;
.video{
color:white;
text-align:center;
.audio{
color:white;
text-align:left;
</style>
</head>
<body>
<div class="video">
</video>
<!--Video Autoplay-->
</video>
<video controls>
type="video/mp4">
</video>
</div>
<br>
<div class="audio">
<!--AUDIO Autoplay-->
<audio controls>
type="audio/mp3">
</audio>
</div>
</body>
</html>
Output:
21. Create a webpage with HTML describing your department use paragraph and list tags.
Program:
Output:
22. Apply various colors to suitably distinguish key words, also apply font styling like italics,
underline and two other fonts to words you find appropriate, also use header tags.
Procedure:
1. Go to start- >all programs-> accessories->notepad
2. Type the html code
3. Use style tag and apply font style, font size, and text decoration and apply background color to
yellow.
4. <div> tag defines a division or a section in an HTML document.
5. Go to file –>save –>save the file with html extension
6. Run the html file using Firefox browser or Chrome
Program:
<html >
<head>
<title>Font Elements</title>
<style>
p{ font-style : italic;}
.underline{text-decoration: underline}
.overline{text-decoration: overline}
.linethrougn{text-decoration:line-through}
.bold{font-weight:900}
</style>
</head>
<body bgcolor="green">
<div class="bold">
<div class="underline">
<p>Underline Text</p>
</div>
<div class="overline">
<p>Overline Text</p>
</div>
<div class="linethrougn">
<p>Overline Text</p>
</div>
</div>
</body>
</html>
OUTPUT:
23. Create links on the words e.g. Wi-Fi and LAN to link them to Wikipedia pages.
Procedure:
Program:
<html >
<head>
<title>Font Elements</title>
</head>
<body>
<hr>
<a href="https://en.wikipedia.org/wiki/Wi-Fi">-Wi-Fi</a>
<hr>
<a href="https://en.wikipedia.org/wiki/Local_area_network">-LAN</a>
<hr>
</body>
</html>
Output:
24. Insert an image and create a link such that clicking on image takes user to other page.
Procedure:
1. Go to start –>all programs-> accessories->notepad
2. Include<img> tag inside<a> tag
3. Save the file as p1.html
4. Create another file
5. Type the html code
6. Save the file as program2.html
7. In <a> tag assign program2.html to href attribute
8. Go to file-> save->save the file with html extension
9. Run the html code using browsers
Program:
<html>
<head>
<title>program 24</title>
</head>
<body style="background-color:black;">
<center>
<a href="program2.html">
<img src=" thumb-1920-345366.jpg" width="700" height="300"/>
</a>
<font size=6px>
<p style="color:white";>Click Image</p>
</font>
</center>
</body>
</html>
program2.html
<html>
<head>
<title>Another HTML Page</title>
</head>
<body>welcome to HTML page</body>
</html>
Output:
25. Change the background color of the page; At the bottom create a link to take user to the top
of the page.
Procedure:
<html>
<head>
<title>program 05</title>
</head>
<body style="background-color:yellow;">
<center>
Two B.Tech Programmes (CSE & ECE) are accredited by NBA, New Delhi.
<br>
Accredited by NAAC with 'A' Grade, Bangalore. Accredited by Institution of Engineers (India),
KOLKATA.<br>
A-grade awarded by AP Knowledge Mission. Recognized under sections 2(f) & 12(B) of UGC Act
1956.</p>
</center>
<font size=5px>
<hr>
<br>In recent years, Artificial Intelligence and Data Science has gained presence in all areas of
life. <br>Data science is an inter-disciplinary field that uses scientific methods, processes,
algorithms and systems to extract knowledge, insights from heterogeneous data using artificial
intelligence. This programme seeks to determine the importance of Artificial Intelligence and
Data Science and its real-time applications in all aspects of life.
<br><br>
The <b>B.Tech</b> program in <b>Artificial Intelligence and Data Science</b> is started in the
academic year 2020 – 21 with an intake of 60 and has increased the intake to 120 from the
academic year 2021 – 22.
</p>
<b>M.Tech (Computer Science and Engineering)</b> is a two year full time post-graduate
programme approved by the All India Council of Technical Education (AICTE) for the students
who have a B.E / B. Tech in any branch of engineering, M.Sc and M.C.A. The course is offered by
the Department of Computer Science & Engineering by highly qualified and experienced teaching
faculty. Intake to this course is 18 admitted through J N T University’s.
<br><br>
The <b>B.Tech CSE </b>Programme was accredited by NBA first time under tier – II in 2016
and further extension of accreditation in granted up to June 2023.</p>
</font>
</body>
</html>
Output:
26. Develop static pages (using only HTML) of an online book store, the pages should resemble:
www.amazon.com, the website should consist the following pages, home page, registration and
user login, user profile page, books catalog, shopping cart, payment by credit card, order
confirmation.
Procedure:
Top.html:
<html>
<body bgcolor=”pink”>
<br><br>
STORAGE</u></b></h1></marquee>
</body>
</html>
Right.html:
<html>
<body bgcolor="gray">
<br><br><br><br><br>
<h2 align="center">
</p></b></h2>
</body>
</html>
Left.html:
<html>
<body bgcolor="gray">
<h3>
<ul>
LOGIN</font></a></li><br><br>
REGISTRATION</font></a></li><br><br>
USER PROFILE</font></a></li><br><br>
BOOKS CATALOG</font></a></li><br><br>
SHOPPINGCART</font></a></li><br><br>
PAYMENT</font></a></li><br><br>
ORDER CONFIRMATION</font></a></li><br><br>
</ul>
</body>
</html>
Main.html:
<frameset cols=”25%,75%”>
</frameset>
</frameset>
Output:
Login.html:
<html>
<head>
<title>Form Tags</title>
</head>
<body bgcolor="gray">
<center>
<!--password-->
<!--button-->
</center>
</body>
</html>
Output:
Book Catalog.html:
<html>
<body bgcolor="gray"><br><br><br>
<div align="center"><pre>
</pre><br><br>
</div>
<br><br>
<div align="center">
</body>
</html>
Output:
Order.html:
<html>
<body bgcolor="gray"><br><br><br>
<div align="center"><table>
</div>
<br><br>
</table>
</body>
</html>
Output:
Payment.html:
<html>
<body bgcolor="gray"><br><br><br>
<form>
<div align="center">
<table>
<tr><td>CREDITCARDNUMBER:</td><td><input type="PASSWORD"
name="num+"></td><br><br><br>
</div>
</table>
</form>
</body>
</html>
OUTPUT:
Profile.html:
<html>
<body bgcolor="gray"><br><br><br>
<form name="myform">
<div align="center"><pre>
</div>
<div align="center">
</form>
</body>
</html>
Output:
27. Create a table to show your class time table.
Source Code:
<html>
<head>TABLE TAG</head>
<title>TABLE</title>
<body>
<style>
table, th, td
border-collapse:collapse;
padding:15px;
#t01
background-color: #f1f1c1;
td{text-align:center;}
</style>
<table id="t01">
<tr>
<th colspan="4">AI&DS</th>
</tr>
<tr>
<th colspan="4">Monday</th>
</tr>
<tr>
<th>9:30-10:20</th>
<th>10:30-11:20</th>
<th>11:30-12:20</th>
<th>12:30-1:20</th>
</tr>
<tr>
<td>P&S</td>
<td>DS</td>
<td>PY</td>
<td>NM</td>
</tr>
</table>
<hr>
<table id="t02">
<tr>
<th rowspan="4">CSE-2</th>
</tr>
<tr>
<th colspan="4">Monday</th>
</tr>
<tr>
<th>9:30-10:20</th>
<th>10:30-11:20</th>
<th>11:30-12:20</th>
<th>12:30-1:20</th>
</tr>
<tr>
<td>PHY</td>
<td>P&S</td>
<td>ENG</td>
</tr>
</table>
</body>
</html>
OUTPUT
28. Write an HTML page that contains a selection box with a list of 5 countries, when the user
selects a country, its capital should be printed next to the list; Add CSS to customize the
properties of the font of the capital (color, bold and font size).
Source Code:
<html>
<head>
</head>
<body>
<div class="form-box">
<font color="white" size="4"><b>Select the country name to find its capital and
continent</b></font><br/><br/>
<br>
<option>Select Country</option>
<option>Germany</option>
<option>India</option>
<option>United Kingdom</option>
<option>France</option>
</select>
</div>
<div id="result"> </div>
</body>
</html>
OUTPUT:
28.css
h1{
text-align:center;
body{
background:
url(natural.jpeg) no-repeat;
background-position:center center;
font-family:sans-serif;
.form-box{
width:500px;
background-color:rgba(0,0,0,0.8);
margin:12% auto;
padding:50px;
color:#fff;
}
29. Wap in html to design a Bio-Data.
Program:
<html>
h1{text-align:center;
text-decoration: underline}
</style>
</head>
<body>
<form>
<fieldset>
<legend>Personal:</legend>
<table id="t02" align="center">
<option value="cse">CSE</option>
<option value="ece">ECE</option>
<option value="mech">MECH</option>
<option value="civil">CIVIL</option>
<option value="other">Other</option>
</select></td></tr>
</table>
</fieldset>
</table>
</form>
</body>
</html>
OUTPUT:
30. Wap in html to create a webpage with four frames (Picture, table, list,
and hyperlink).
Program:
Save program as main.html
<html>
<head><title>Program 30</title></head>
<frameset cols="20%,*,20%">
<frame src="list.html">
<frameset rows="80%,*">
<frame src="picture.html">
<frame src="hyperlink.html">
</frameset>
<frameset cols="*">
<frame src="table.html">
</frameset>
</frameset>
</html>
OUTPUT:
Save File as list.html
<html>
<body bgcolor="yellow">
<br>
<br>
<ul>
<h2>Soup's</h2>
<li>Mushroom Soup</li>
<li>Vegetable Soup</li>
<li>Chiken Soup</li>
<li>paya Soup</li>
<li>Crab Soup</li>
<hr>
<h2>Momo's</h2>
<li>Veg Momo's</li>
<li>Chiken Momo's</li>
</ul>
</body>
</html>
OUTPUT:
hyperlink.html
<html>
<head><title>hyperlink</title>
</head>
<body bgcolor="lightgray">
<table align="center"><tr><td><img src="hand (2).png" height="60px"
width="40px"></td><td><a
href="https://www.google.com/maps/place/Sree+Chettinadu+Soup's+%26+M
omo's/@13.6243684,79.4064922,15z/data=!4m2!3m1!1s0x0:0xa4cf0c90ba7e
380d?sa=X&ved=2ahUKEwiA18f90YDzAhV7zTgGHVFxDDkQ_BJ6BAhcEAU"><h
2>Chettinadu Soups & Momo's</h2></a></td></tr></table>
</body>
</html>
OUTPUT:
table.htmt
<html>
<head><title>Table</title>
<style>
table, th,td{
border:1px solid black;
padding:15px;
}
</style>
</head>
<body bgcolor="yellow">
<table>
<tt>*****PRISE*****</tt>
<tr><th>Names</th><th>Prise</th></tr>
<tr style="color:white;text-align:center;"bgcolor="black"><td
colspan="2">Soup's</td></tr>
<tr><td>Mushroom Soup</td><td>25/-</td></tr>
<tr><td>Vegetable Soup</td><td>25/-</td></tr>
<tr><td>Chiken Soup</td><td>35/-</td></tr>
<tr><td>Paya Soup</td><td>45/-</td></tr>
<tr><td>Crab Soup</td><td>45/-</td></tr>
<tr style="color:white;text-align:center;" bgcolor="black"><td
colspan="2">Momo's</td></tr>
<tr><td>Veg Momo's</td><td>60/-</td></tr>
<tr><td>Chiken Momo's</td><td>70/-</td></tr>
</table>
</body>
</html>
OUTPUT:
Save picture.html
<html>
<body>
<img src="momo_noodles_soup_2018.jpg" width="100%" height="100%">
</body>
</html>
OUTPUT:
<form action="#">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<input type="submit" value="Submit">
</form>
<hr>
<h1>Inline Elements</h1>
<!--<a><abbr><acronym><b><bdo>
<big><br><button><cite><code><dfn>
<em><i><img><input><kbd><label><map>
<object><output><q><samp><script><select>
<small><span><strong><sub><sup>
<textarea><time><tt><var>
-->
<!--Example-->
<textarea id="tarea" name="tarea" rows="4" cols="50">
You will learn how to make a proper front end design of website in Web
Design. </textarea>
<p><abbr title="Cascading Style Sheets">CSS</abbr> place the cursor to
known abbreviation</p>
<p><abbr title="Hyper Text Markup Language">HTML</abbr> place the cursor
to known abbreviation</p>
.
</body>
</html>
OUTPUT:
</body>
</html>
OUTPUT:
3. To keep image as a multiple link we need to use <map> tag name= name is used to call
the property.
4. To know cords of the image open IMAGE with PAINT tool
5. Move the cursor on to the image to know the coords
6. Next we need to create a hot spot area to do that we need to use <area> attributes
{shape= rect }
ii. Radius (to know radius of the circle we need to take y point on end curve of the
circle and [centre y position y point on end curve])
7. Go to file->save->save the file with html extension.
NOTE : don t use height and width attributes for image it may change the coords positions in
the web page
Program:
SAVE as map.html
<html>
<head>
<title>India Map</title>
<head>
<body bgcolor="PINK">
<font face="Monotype Corsiva" color="BLUE" size="6">
<marquee direction="left" behavior="alternate">INDIA MAP
</marquee>
</font>
<hr size="6" color="RED">
<map name="pagemap">
<area shape="rect" coords="263,228,365,248" href="map1.html">
<!--coords for Delhi-->
<area shape="rect" coords="314,423,424,441" href="map2.html">
<!--coords for Hydrabad-->
<area shape="rect" coords="133,407,212,425" href="map3.html">
<!--coords for MUMBAI-->
<area shape="rect" coords="376,549,459,569" href="map4.html">
<!--coords for Chennai-->
</map>
Save as map1.html
<html>
<body bgcolor="SKYBLUE">
<font face="Monotype Corsiva" size="18" color="RED">
<center><b><i><tt>Delhi is the capital of our INDIA<br> and <br>More IT
companies are
Camped at Delhi</tt></i></b></center>
<a href="map.html">Home Page</a>
</font>
</body>
</html>
OUTPUT:
Save as map2.html
<html>
<body bgcolor="SKYBLUE">
<font face="Times New Roman" size="18" color="RED">
<center><b><i>Hyderabad is the capital of southern India's Telangana state.
<br> and <br>it has Famous
"Sunderbans Forests"</i></b></center>
<a href="map.html">Home Page</a>
</font></body></html>
OUTPUT:
Save as map3.html
<html>
<body bgcolor="DARKGREEN">
<font face="Times New Roman" size="12" color="RED">
<center>MUMBAI is the capital of Maharashtra<br> and <br>it has Famous
India
Gate</center>
<a href="map.html">Home Page</a>
</font>
</body>
</html>
OUTPUT:
Save as map4.html
<html>
<body bgcolor="BLACK">
<font face="Times New Roman" size="12" color="RED">
<center>Chennai is the capital of Tamil Nadu<br> and <br>More IT companies
are camped at
Chennai
</center>
<a href="map.html">Home Page</a>
</font>
</body>
</html>
OUTPUT: