Name: Nithish S
Reg no: 18BCA0051
Course Name: Web Development
Course code: ITA1007
1) HTML Text formatting exercises
a. Print the squares of the numbers 1 - 20. Each number should be on a
separate line, next to it the number 2 superscripted, an equal sign and the
result.
Code:
<HTML>
<HEAD><TITLE>SQUARE NUMBERS</TITLE>
</HEAD>
<BODY>
<H5 ALIGN="LEFT">1<SUP>2</SUP>=1</H5>
<H5 ALIGN="LEFT">2<SUP>2</SUP>=4</H5>
<H5 ALIGN="LEFT">3<SUP>2</SUP>=9</H5>
<H5 ALIGN="LEFT">4<SUP>2</SUP>=16</H5>
<H5 ALIGN="LEFT">5<SUP>2</SUP>=25</H5>
<H5 ALIGN="LEFT">6<SUP>2</SUP>=36</H5>
<H5 ALIGN="LEFT">7<SUP>2</SUP>=49</H5>
<H5 ALIGN="LEFT">8<SUP>2</SUP>=64</H5>
<H5 ALIGN="LEFT">9<SUP>2</SUP>=81</H5>
<H5 ALIGN="LEFT">10<SUP>2</SUP>=100</H5>
<H5 ALIGN="LEFT">11<SUP>2</SUP>=121</H5>
<H5 ALIGN="LEFT">12<SUP>2</SUP>=144</H5>
<H5 ALIGN="LEFT">13<SUP>2</SUP>=169</H5>
<H5 ALIGN="LEFT">14<SUP>2</SUP>=196</H5>
<H5 ALIGN="LEFT">15<SUP>2</SUP>=225</H5>
<H5 ALIGN="LEFT">16<SUP>2</SUP>=256</H5>
<H5 ALIGN="LEFT">17<SUP>2</SUP>=289</H5>
<H5 ALIGN="LEFT">18<SUP>2</SUP>=324</H5>
<H5 ALIGN="LEFT">19<SUP>2</SUP>=361</H5>
<H5 ALIGN="LEFT">20<SUP>2</SUP>=400</H5>
</BODY>
</HTML>
OUTPUT:
B. Print two lists with any information you want. One list should be an ordered list,
the other list should be an unordered list
Code:
<HTML>
</HEAD>
<BODY>
<OL TYPE="I">
<LI>ONE</LI>
<LI>TWO</LI>
<LI>THREE</LI>
</OL>
<UL TYPE="CIRCLE">
<LI>ONE</LI>
<LI>TWO</LI>
<LI>THREE</LI>
</UL>
</BODY>
</HTML>
OUTPUT:
Code:
<HTML>
</HEAD>
<BODY>
<LI>Dosa</LI>
<LI>Idly</LI>
<LI>Poori</LI>
<LI>Pongal</LI>
<LI>Chappathi</LI>
<LI>Parota</LI>
<LI>Meals</LI>
<LI>Pizza</LI>
</OL>
</BODY>
</HTML>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>HORIZONTAL PARA LINE</TITLE>
</HEAD>
<BODY>
<HR WIDTH="100"></HR>
<p>Im Nithish from Vellore and I'm studying in VIT since 1 year and my Phone number is
9943438382</p>
</BODY>
</HTML>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>DEFINITION LIST</TITLE>
</HEAD>
<BODY>
<DL>
<DT>HTTP</DT>
<DT>HTML</DT>
<DT>CAD</DT>
<DT>TCP</DT>
<DT>DCF</DT>
</DL>
</BODY>
</HTML>
OUTPUT:
F. Print two addresses in the same format used on the front of envelopes (senders
address in top left corner, receivers address in the center)
Code:
<HTML>
<HEAD><TITLE>ADDRESS ON ENVELOPE</TITLE>
</HEAD>
<BODY BGCOLOR="WHITE">
<H4 ALIGN="LEFT">NITHISH</H4>
<H4 ALIGN="LEFT">KATTPADI</H4>
<H4 ALIGN="CENTER">PRAVEEN</H4>
<H4 ALIGN="CENTER">VELLORE</H4>
</BODY>
</HTML>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>ABBREVATIONS</TITLE>
</HEAD>
<BODY BGCOLOR="WHITE">
<H1 ALIGN="CENTER">ABBREVATIONS</H1>
<DL><DT>HTTP</DT>
<DT>HTML</DT>
<DT>AIDS</DT>
<DT>GK</DT>
<DD>GENERAL KNOWNLEDGE</DD><BR>
<DT>MAT</DT>
<DD>MATHS</DD><BR>
<DT>UNO</DT>
<DT>IMG</DT>
<DD>IMAGE</DD><BR>
<DT>JPEG</DT>
</DL>
</BODY>
</HTML>
OUTPUT:
A. Display five different images. Skip two lines between each image. Each image
should have a title.
Code:
<html>
<head><title>Five images</title>
</head>
<body bgcolor="blue">
<h1 align="center">Apple</h1>
<img src="apple.jpg"alt="Apple"title="Apple"/>
<br><br>
<h1>Orange</h1>
<img src="orange.jpg"alt="Orange"title="Orange"/>
<br><br>
<h1>Bike</h1>
<img src="bike.jpg"alt="Bike"title="Bike"/>
<br><br>
<h1>Car</h1>
<img src="Car.jpg"alt="Car"title="Car"/>
<br><br>
<h1>Lorry</h1>
<img src="Lorry.jpg"alt="Lorry"title="Lorry"/>
<br><br>
</body>
</html>
OUTPUT:
B. Display an image that has a border of size 2, a width of 200, and a height of 200.
Code:
<html>
<body>
</body>
</html>
OUTPUT:
Code:
<html>
<head><title>TOP RIGHT</title>
</head>
<body>
</body>
</html>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>NESTED ORDER</TITLE>
</HEAD>
<BODY>
<OL TYPE="a">
<OL TYPE="i">
<LI>COMPANY LOGO</LI>
<LI>PRODUCT IMAGE</LI></OL>
</LI>
<OL TYPE="i">
</LI>
<OL TYPE="i">
</LI>
</LI>
</LI>
</OL>
</OL>
</BODY>
</HTML>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>ORDERED NESTED</TITLE>
</HEAD>
<BODY>
<OL TYPE="1">
<LI>COFFEE</LI>
<LI>TEA
<OL TYPE="a">
<LI>BLACK TEA</LI>
<LI>GREEN TEA
<OL TYPE="i">
<LI>CHINA</LI>
<LI>AFRICA</LI>
</OL></OL>
</LI>
<LI>MIlk</LI>
<DL><DT>BANGALORE</DT>
<DT>MUMBAI</DT>
</BODY>
</HTML>
OTUPUT:
Code:
<HTML>
<HEAD><TITLE>PRACTICE</TITLE>
</HEAD>
<BODY BGCOLOR="BLACK">
<UL TYPE="disc">
<OL TYPE="1">
</OL>
</OL>
<OL TYPE="1">
<LI>GET GROCERIES
<UL TYPE="CIRCLE">
<LI>GROUND BEEF</LI>
<LI>MOZZARELLA</LI>
<LI>LASAGNA NOODLES</LI>
<LI>PASTA SAUCE</LI>
<LI>RICOTTA CHEESE</LI></UL>
</LI>
</OL>
</BODY>
</HTML>
OUTPUT:
<html>
<head>
<title>Table</title>
</head>
<body>
<table border="3">
<tr>
</tr>
<tr>
<th align="Center">SYMBOL</th>
<th align="Center">CURRENT</th>
</tr>
<tr>
<td>Microsoft</td>
<td>MFST</td>
<td>86-3/8</td>
<td>119-15/16</td>
<td>75-1/2</td>
<td>56.09</td>
</tr>
<tr>
<td>Cisco Systems</td>
<td>CSCO</td>
<td>72-1/8</td>
<td>82</td>
<td>24-13/16</td>
<td>400.69</td>
</tr>
<tr>
<td>American Online</td>
<td>AOL</td>
<td>63</td>
<td>95-13/16</td>
<td>38-15/32</td>
<td>350.00</td>
</tr>
<tr>
<td>Qwest Communications</td>
<td>Q</td>
<td>44-7/16</td>
<td>66</td>
<td>25-3/4</td>
<td>74.06</td>
</tr>
<tr>
<td>DELL Computers</td>
<td>DELL</td>
<td>53-59/64</td>
<td>59-11/16</td>
<td>31-3/8</td>
<td>86.97</td>
</tr>
</table>
</body>
</html>
OUTPUT:
B. List of Fruits
Code:
<html>
<head>
<title></title>
</head>
<body>
<tr>
</tr>
<tr>
every day will help</br> keep you healthy, fit and trim.</td>
</tr>
</table>
</body>
</html>
OUTPUT:
C. Time Table
Code:
<html>
<head>
<title>Table</title>
</head>
<body>
<tr>
<th align="Center"></th>
<th align="Center">8.30-9.30</th>
<th align="Center">9.30-10.30</th>
<th align="Center">10.30-11.30</th>
<th align="Center">11.30-12.30</th>
<th align="Center">12.30-2.00</th>
<th align="Center">2.00-3.00</th>
<th align="Center">3.00-4.00</th>
<th align="Center">4.00-5.00</th>
</tr>
<tr align="center">
<td>Monday</td>
<td>---</td>
<td><font color="blue">SUB1</td>
<td><font color="pink">SUB2</td>
<td><font color="red">SUB3</td>
<td rowspan="6">Seminar</td>
<td><font color="brown">SUB4</td>
<td><font color="maroon">SUB5</td>
<td>Counselling Class</td>
</tr>
<tr align="center">
<td>Tuesday</td>
<td><font color="blue">SUB1</td>
<td><font color="red">SUB2</td>
<td><font color="pink">SUB3</td>
<td>---</td>
<td><font color="yellow">SUB4</td>
<td><font color="brown">SUB5</td>
<td>Library</td>
</tr>
<tr align="center">
<td>Wednesday</td>
<td><font color="pink">SUB1</td>
<td><font color="yellow">SUB2</td>
<td><font color="maroon">SWA</td>
<td>---</td>
</tr>
<tr align="center">
<td>Thursday</td>
<td><font color="green">SUB1</td>
<td><font color="maroon">SUB2</td>
<td><font color="Yellow">SUB3</td>
<td>---</td>
<td><font color="blue">SUB4</td>
<td><font color="red">SUB5</td>
<td>Library</td>
</tr>
<tr align="center">
<td>Friday</td>
<td><font color="yellow">SUB1</td>
<td><font color="brown">SUB2</td>
<td><font color="blue">SUB3</td>
<td>---</td>
<td><font color="pink">SUB4</td>
<td><font color="maroon">SUB5</td>
<td>Library</td>
</tr>
<tr align="center">
<td>Saturday</td>
<td><font color="red">SUB1</td>
<th colspan="3">Seminar</th>
<td><font color="pink">SUB4</td>
<td><font color="maroon">SUB5</td>
<td>Library</td>
</tr>
</table>
</body>
</html>
OUTPUT:
Code:
<HTML>
<HEAD><TITLE>FIVE LINKS</TITLE>
</HEAD>
<BODY BGCOLOR="BLACK">
<a href="ADDRESS.html">ADDRESS</a></br>
<a href="DEFINITION.html">DEFINITION</a></br>
</BODY>
</HTML>
OUTPUT:
B. Create a page with a link at the top of it that when clicked will jump all the
way to the bottom of the page. At the bottom of the page there should be a
link to jump back to the top of the page.
Code:
<html>
<body>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
<p>Some text</p>
</body>
</html>
OUTPUT:
C. Write an HTML code to create a Home page having three links: About Us, Our
Services and Contact Us. Create separate web pages for the three links.
Code:
<HTML>
<HEAD><TITLE>Cinemas</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="CENTER">Welcome to SPICinemas</H1>
<ul type="circle">
<li><a href="aboutus.html">About</a></li></br>
<li><a href="ContactUS.html">ContactUS</a></li></br>
</BODY>
</HTML>
OUTPUT:
About us.html:
<html>
<head><title>AboutUS</title></head>
<body>
<h1 align="left"><fontcolor="black">AboutUS</h1>
we are a theatre chain with a passion for experiences and an even bigger passion
to share them with our customers. We understand the joy of watching our favourite
stories come alive on the big screen, and believe that it is our duty to go the extra
mile to make this experience as immersive as we possibly can! Our eight brands,
Sathyam, Escape, Palazzo, Aura, Le Reve,
The Cinema, S2 and Kripa each offer spaces and experiences that are exclusive.</p>
<p>It all started in 1974 when we acquired ‘The Royal Theatre Complex’ from the Raja
of
Venkatagiri and
renamed it Sathyam Cinemas (after 1000+ seater in the complex). After about 25 years,
in 1999, talks were on to
demolish the then 3 screen multiplex and build an apartment complex. It was at this
time that our now CEO Mr. Kiran Reddy,
suggested that instead of taking down the cinema, we try something different!</p>
</body>
</html>
OUTPUT:
Contact us.html:
<html>
<head><title>ContactUS</title></head>
<body bgcolor="Grey">
<h1 align="left"><fontcolor="black">Contact</h1>
<p>Customer Care: help@spicinemas.in | For Movie Information and Door Delivery
(feature available only in Chennai), call: 044 4224 4224</p>
</body>
</html>
OUTPUT:
Our service.html:
<html>
<head><title>OurServices</title></head>
<body bgcolor="Grey">
<h1 align="left"><fontcolor="black">Service and support</h1>
<h3 align="left">OUR VISION</h3>
<p>At SPI CINEMAS, we believe in bringing people together to enjoy the ultimate
entertainment experience.
We urge our customers to demand more from entertainment and
we work together to deliver a 360° entertainment experience like no other. Within
our stunning environments,
we continually strive to bring our customers the latest innovations in sound and vision,
adrenalin- rush gaming,
delicious dining or pure relaxation in our spa. It's in our DNA.
Each of our five unique cinema brands belongs to the SPI Cinemas mother brand.
And whilst each one is clearly unique and individually defined, they all deliver the same
guarantee of the very highest quality and an unrivalled experience.</p>
</body>
</html>
OUTPUT:
Code:
<!DOCTYPE html>
<html><head>
<title></title></head>
<body>
<form>
<table border="2">
<tr><th colspan="2">Pizza Shop 2.0</th></tr>
<tr>
<td>Name</td><td><input type="text" name="name"></input></td></tr>
<tr>
<td>Pizza Topping</td><td><input type="radio" name="topping"
value="supreme">Supreme</input></br>
<input type="radio" name="topping" value="vegetarian">Vegetarian</input></br>
<input type="radio" name="topping" value="hawaiian">Hawaiian</input></td></tr>
<tr>
<td>Pizza Sauce</td>
<td><select name="sauce">
<option value="tomato">Tomato</option>
<option value="barbeque">Barbeque</option>
<option value="mayonnaise">Mayonnaise</option>
<option value="secret">Secret Sauce</option>
</select></td></tr>
<tr>
<td>Optional Extras</td><td><input type="checkbox" name="extra_cheese" value="1">Extra
Cheese</input>
<input type="checkbox" name="gluten_free" value="1">Gluten Free Base</input></td>
</tr>
<tr>
<td>Delivery Instructions</td><td><textarea name="delivery" cols="50" rows="4"
required></textarea></td>
<tr><th><input type="submit" value="Send my Order"></th></tr>
</table>
</form>
</body>
</html>
OUTPUT:
B. Design a student registration form which takes student name, register number, DOB,
program, email id, temporary address, permanent address, phone number.
Code:
<!DOCTYPE HTML>
<html>
<head>
<title>Register Form</title>
</head>
<body>
<form>
<table>
<tr>
<td>Name :</td>
<td><input type="text"required/></td>
</tr>
<tr>
<td><input type="text"></td>
</tr>
<tr>
<td>DOB:</td>
<td>
</td>
</tr>
<tr>
<td>Program:</td>
<td><select name="Program">
<option value="BCA">BCA</option>
<option value="MCA">MCA</option>
<option value="B.tech">B.tech</option>
<option value="M.tech">M.tech</option>
</select></td>
</tr>
<tr>
<td>Permanent address</td><td><textarea name="Permanent address" cols="50"
rows="4"></textarea></td><tr>
<tr>
<td>Email :</td>
<td><input type="email"required/></td>
</tr>
<tr>
<td>Phone no :</td>
<td>
<select>
<option>91</option>
<option>044</option>
<option>011</option>
<option>012</option>
<option>013</option>
<option>003</option>
</select>
<input type="phone">
</td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
OUTPUT:
Develop static pages (using Only HTML) of an online Book store. The pages should resemble:
www.amazon.com. The website should consist of the following pages.
Home page
Registration and user Login
User Profile Page
Books catalogue
Shopping Cart
Payment By credit card
Order Conformation
Write an html program to generate a webpage that can give the overall information about that
website
Left.html :
<html>
<head><title>left</title>
</head>
<body>
<h3>
<ul>
<li><a href="login.html" target="right"><font color="blue">User Login</li><br>
<li><a href="userprofile.html" target="right">User Profile</li><br>
<li><a href="bookscatalog.html" target="right">Books Catalog</li><br>
<li><a href="shoppingcart.html" target="right">Shopping CART</li><br>
<li><a href="orderconformation.html" target="right">Order Conformation</li><br>
<li><a href="payment.html" target="right">Payment</li></ul>
</body>
</html>
OUTPUT:
Log-in.html :
<html>
<head><title>login</title></head>
<body background="sky.jpg">
<h2 align="center"><font color="white">USER LOGIN FORM</h2>
<h4 align="center"><u>Alread HAVE AN ID "LOGIN" OTHERWISE
"REGISTER"</u><h4>
<form>
<h3 align="center">User ID :<input type="text"></input></h3>
<h3 align="center">Password :<input type="password"></input></h3><br>
<h4 align="center"><a href="right.html">HOME</a>
<input type="submit" value="Login"><a href="register.html">REGISTER</h4>
</body>
</html>
Register.html :
<html>
<head><title>Register</title>
</head>
<body background="sky1.jpg">
<h2 align="center"><font color="violet">* * REGISTRATION * *</h2>
<HR WIDTH="1000"></HR>
<form>
<table align="center">
<tr>
<td><font color="white">NAME:</td><td><input type="text"></td>
<tr><td><font color="white">GENDER:</td><td><input type="radio"
value="Male">Male</input>
<input type="radio" value="Female">Female</input></td></tr>
tr>
<td><font color="white">OCCUPATION:</td>
<td><select occupation>
<option>Student</option>
<option>Worker</option>
<option>Teacher</option>
</select></tr>
<tr>
<td><font color="white">ADDRESS:</td><td><textarea cols="30"
rows="5"></textarea>
</tr>
<tr><td><font color="white">PHONE:</td>
<td><input type="phone"/><td></tr>
<tr><td><font color="white">EMAIL ID:</td>
<td><input type="email"/><td></tr>
<tr><td><font color="white">HOBBIES:</td>
<td><input type="checkbox">Browsing</input>
<input type="checkbox">Reading Books</input>
<input type="checkbox">Driving</input>
<input type="checkbox">Gardening</input>
<td></tr>
<tr><td><font color="white">User ID :</td><td><input type="text"></input></td>
</tr>
<tr><td><font color="white">Password :</td><td><input
type="password"></input></td>
</tr>
<tr>
<td><font color="white">RETYPE PASSWORD :</td><td><input
type="password"></input></td>
</tr>
</table>
<h4 align="center"><a href="login.html">BACK</a><input type="submit"
value="Submit"/>
<input type="Reset" value="Reset"/>
</form>
</body>
</html>
Main.html :
<html>
<head><title></title>
</head>
<frameset rows="25%,75%">
<frame src="top.html" name="top">
<frameset cols="35%,65%">
<frame src="left.html" name="left">
<frame src="right.html" name="right">
</frameset>
</frameset>
</html>
OUTPUT: