Professional Documents
Culture Documents
b. Prints 10 names with a line break between each name. The list should be
alphabetized, and to do this place a subscripted number next to each name based on
where it will go in the alphabetized list. (Example: Alan1). Print first, the
unalphabetized list with a subscript number next to each name, then the
alphabetized list. Both lists should have an level heading
CODE:
<html><head><title>print names</title>
<style>
body{background-color:FFEFD5;} h1,h2{color:brown;}
</style></head>
<body>
<h1 align="center">Un Alphabetized list</h1> <hr color="orange">
<p>krishna<sub>3</sub><br/> ganesh<sub>5</sub><br/> karthik<sub>4</sub><br/>
venkatesh<sub>9</sub><br/> bhagyalakshmi<sub>15</sub><br/>
saroja<sub>22</sub><br/> ganapathy<sub>1</sub><br/> lakshmi<sub>32</sub><br/>
varsha<sub>12</sub><br/> hari<sub>7</sub><br/></p> <h1 align="center">Alphabetized
list</h1> <hr color="navy blue">
<p>krishna<br/>ganesh<br/>karthik<br/>venkatesh<br/>bhagya lakshmi<br/>
saroja<br/>ganapathy<br/>varsha<br/>lakshmi<br/></p></body></html>
OUTPUT:
c. 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><title>Lists</title>
<style> h1,h2{color:red;}
body{background-color:FFEFD5;} ol,ul{color:blue;}
</style></head>
<body>
<h1 align="center">Ordered list</h1><hr>
<p><b>Fruits</b>
<ol>
<li>Apple</li> <li>Grapes</li> <li>Banana</li> <li>Jackfruit</li> <li>Cranberries</li>
</ol></p>
<h1 align="center">Unordered list</h1><hr>
<p><b>Vegetables</b>
<ul>
<li>Spinach</li> <li>Beans</li> <li>Ladys finger</li> <li>Cabbage</li> <li>potato</li>
</ul></p></body></html> OUTPUT:
g. 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>adddress</title>
<style>
body{background-color:FFF8DC;}
</style> </head>
<body>
<p>From:<br> Karthik,<br> Vit mens hostel,<br> Vellore Institute Of Technology.<br>
Vellore. </p>
<p align="center"> To:<br>
Venkatesh,<br>
&nbs
p; 17/291,Ra
mesh apt,<br>
&nbs
p;Achari street,<br>
&nbs
p; &n
bsp; Andhra Pradesh-524001.<br>
</p> </body> </html>
h. Print ten acronyms and abbreviations of your choosing, each separated by two lines.
Specify the data that the abbreviations and acronyms represent
CODE:
<html><head>
<title>Abbrevation and Acronym</title>
<style>
body{background-color:FFEFD5;}
</style></head>
<body> <h1 align="center" style="color:brown">Acronmys</h1>
<acronmy title="Light Amplification by the Stimulated Emission of
Radation">LASER</acronomy><br><br> <acronmy title="Radio detecting and
ranging">RADAR</acronomy><br><br> <acronmy title="The North Atlantic Treaty
Organization">NATO</acronomy><br><br> <acronmy title="The United Nations
International Childrens Emergency Fund">UNICEF</acronomy><br><br> <acronmy
title="Self-contained underwater breathing apparatus">SCUBA</acronomy><br><br>
<acronmy title="White anglo saxon protestant">WASP</acronomy><br><br>
<acronmy title="Junior Reserve Officer Training Corps">JROTC</acronomy><br><br>
<acronmy title="Special Weapons And Tactics">SWAT</acronomy><br><br>
<acronmy title="Federal Bureau of Investigation">FBI</acronomy><br><br>
<acronmy title="Occupational Safety and Health
Administration">OSHA</acronomy><br><br>
<hr color="red"> <h1 align="center" style="color:pink">Abbreviations</h1>
<abbr title="Association of American Railroads">AAR</abbr><br><br> <abbr title="All
India Radio">AIR</abbr><br><br> <abbr title=" Board of Cricket Control in
India">BCCI</abbr><br><br> <abbr title="Broad Gauge">BG</abbr><br><br> <abbr
title="Central Bureau of Investigation">CBI</abbr><br><br> <abbr title=" Central Board of
Secondary Education">CBSE</abbr><br><br> <abbr title="American Association of Blood
Banks">AABB</abbr><br><br> <abbr title="Advanced Care Paramedic
">ACP</abbr><br><br> <abbr title="American Cancer Society">ACS</abbr><br><br>
<abbr title="Indian Air Force">IAF</abbr><br><br></body></html>
b. Display an image that has a border of size 2, a width of 200, and a height of 200.
CODE:
<html><head><title>image</title><style> body{background-color:pink;}</style></head>
<body><img src="Mount Rushmore Being Carved(1932).jpg" border="1" size="2"
width="200px" height="200px" ></html>
5. 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 catalog
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.
CODE:
Karthik.html
<!DOCTYPE html>
<html><head><title>website</title>
<style>
#p1{top:300px;left:50%;bottom:50%;font-style:italic;font-size:2em;}
nav li{list-style:none;} nav li a{style:none;}
header{height:100px;position:fixed;width:100%;background-
color:blue;left:0px;fontsize:2em;
top:0px;text-transform:uppercase;}
nav{position:fixed;top:100px;left:0px;width:25%;height:100%;backgroundcolor:yello
w;}
article{position:fixed;top:25%;left:25%;font-size:2em;height:100%;width:100%;
background-color:pink;font-color:pink;top:100px;}
</style>
</header><body><header align=center>amazon book world</header>
<nav>
<ol> <li><a href="userlogin.html">USER LOGIN</a></li><br>
<li><a href="userprofile.html" target="article">USER PROFILE</a></li><br>
<li><a href="bookscatalogue.html">BOOKS CATALOGU</a></li><br>
<li><a href="shopingcart.html">SHOPPING CART</a></li><br>
<li><a href="orderconformation.html">ORDER CONFORMATION</a></li><br>
<li><a href="payment.html">PAYMENT</a></li> </ol> </nav>
<article><center><p id="p1">welcome<br><br>2<br><br>AmAzon</p></center></article>
</body></html>
Bookscatalogue.html
<html> <head><title>5(g)</title>
<h1 align="center"><u>LITERARY AND STORY BOOKS CATALOG</u></h1> </head>
<body>
<a href="payment1.html"><img src="1.jpg"/></a>  
<a href="payment1.html"><img src="2.jpg"/></a>  
<a href="payment1.html"><img src="3.jpg"/></a>  
<a href="payment2.html"><img src="4.jpg"/></a>  
<a href="payment2.html"><img src="5.jpg"/></a>  
<a href="payment2.html"><img src="6.jpg"/></a>  
<a href="payment2.html"><img src="7.jpg"/></a>  
<a href="payment2.html"><img src="8.jpg"/></a>  
<a href="payment1.html"><img src="9.jpg"/></a>  
<a href="payment2.html"><img src="10.jpg"/></a>  
<a href="payment2.html"><img src="11.jpg"/></a>  
<a href="payment2.html"><img src="12.jpg"/></a>  
<a href="payment3.html"><img src="13.jpg"/></a>  
<a href="payment3.html"><img src="14.jpg"/></a>  
<a href="payment3.html"><img src="15.jpg"/></a>  
<a href="payment2.html"><img src="16.jpg"/></a>  
<a href="payment1.html"><img src="17.jpg"/></a>  
<a href="payment2.html"><img src="18.jpg"/></a>  
<a href="payment2.html"><img src="19.jpg"/></a>  
<a href="payment2.html"><img src="20.jpg"/></a>  
<a href="payment2.html"><img src="21.jpg"/></a>  
<a href="payment3.html"><img src="22.jpg"/></a>  
<a href="payment3.html"><img src="23.jpg"/></a>  
<a href="payment3.html"><img src="24.jpg"/></a>  
<a href="payment1.html"><img src="25.jpg"/></a>  
<a href="payment3.html"><img src="26.jpg"/></a>  
<a href="payment3.html"><img src="27.jpg"/></a>  
<a href="payment3.html"><img src="28.jpg"/></a>  
<a href="payment3.html"><img src="29.jpg"/></a>  
<a href="payment3.html"><img src="30.jpg"/></a>  
<a href="payment3.html"><img src="31.jpg"/></a>  
<a href="payment3.html"><img src="32.jpg"/></a>  
<a href="payment2.html"><img src="33.jpg"/></a>  
<a href="payment3.html"><img src="34.jpg"/></a>  
<a href="payment3.html"><img src="35.jpg"/></a>  
<a href="payment3.html"><img src="36.jpg"/></a>  
<a href="payment3.html"><img src="37.jpg"/></a>  
<a href="payment1.html"><img src="38.jpg"/></a>  
<a href="payment1.html"><img src="39.jpg"/></a>   <a
href="payment2.html"><img src="40.jpg"/></a>  
</body> </html>
Orderconformation.html
<HTML> <head> <title>5(j)</title> </head><h1 ALIGN="CENTER"><U>SHOPPING
CART</U></H1>
<body bgcolor="aqua">
<H2 ALIGN="CENTER"><U>YOUR SHOPPING CART DETAILS</U></H2>
<form method="get">
<table cellpadding="5" border="1" CELLSPACING="0" align="center">
<tr> <TH>S.NO</TH><th>BOOK ID</TH> <TH>BOOK NAME</TH>
<TH>ORDERED DATE</TH><TH>BOOK ORDER</TH></TR>
<TR><TH>1.</TH> <TD>BOOK001</TD>
<TD>PRIDE AND PREJUSTICE</TD> <TD>12/03/2017</TD>
<TD>DELIVERED</TD></TR> <TR><TH>2.</TH> <TD>BOOK032</TD>
<TD>GULLIVER'S TRAVELLS</TD> <TD>18/05/2017</TD>
<TD><INPUT TYPE="SUBMIT" VALUE="BUY NOW"> <BR/><INPUT
TYPE="SUBMIT" VALUE="DELETE"></TD></TR><TR>
<TH>3.</TH> <TD>BOOK031</TD>
<TD>CHILDREN STORIES</TD> <TD>02/06/2017</TD>
<TD>DELIVERED</TD></TR>
<TR><TH>4.</TH> <TD>BOOK043</TD> <TD>TIME TO LEAD</TD>
<TD>02/06/2017</TD> <TD><INPUT TYPE="SUBMIT" VALUE="BUY NOW">
<BR/><INPUT TYPE="SUBMIT" VALUE="DELETE"></TD></TR>
<TR><TH>5.</TH> <TD>BOOK045</TD>
<TD>BASIC JAVA</TD> <TD>02/06/2017</TD> <TD><INPUT TYPE="SUBMIT"
VALUE="BUY NOW"> <BR/><INPUT TYPE="SUBMIT"
VALUE="DELETE"></TD></TR>
</table><BR/>
<table align="center"><TR><TH><A HREF="5.html" target="_top">CONTINUE TO
SHOPPING</A></TR></TH>
</table></body></html>
Payment.html
<HTML> </head><h1 ALIGN="CENTER"><U>PAYMENT</U></H1>
<body bgcolor="aqua"> <FORM METHOD="GET">
<h2 ALIGN="CENTER"><U>SELECT THE PAYMENT TYPE</U></H2>
<H3>FOR CREDIT OR DEBIT TRANSACTION</H3>
   <A HREF="5(l).html"><INPUT TYPE="RADIO"></a>CREDIT
CARD
 <A href="5(m).html"><INPUT TYPE="RADIO"></a>DEBIT CARD<BR/>
<H3>IF TRANSACTION BY NET BANKING</H3>
   <A HREF="5(n).html"><INPUT TYPE="RADIO"></a>NET
BANKING <h3>IF CASH ON DELIVERY</h3>
   <A href="5(o).html"><INPUT TYPE="RADIO"></a>CASH ON
DELIVERY
</body> </html>
Payment1.html
<html> <head><title>5(h)</title> </head>
<body bgcolor="skyblue"><br/><br/><br/><br/><br/><p align="center">BOOK
PRICE=Rs.400<br/><br/> To add to cart<br/><br/> <a href="userlogin.html">Click
here</a></p></body></html>
Payment2.html
<html><head><title>5(h)</title></head>
<body bgcolor="skyblue"><br/><br/><br/><br/><br/><p align="center">BOOK
PRICE=Rs.600<br/><br/>To add to cart<br/><br/><a href="userlogin.html">Click
here</a></p></body></html>
Registration.html
<!DOCTYPE html>
<html> <head> <style>
input[type=text], select, textarea{width: 100%;padding: 12px;border: 1px solid
#ccc;border-radius: 4px;box-sizing: border-box;margin-top: 6px;margin-bottom:
16px;resize: vertical;}
input[type=password]{width: 100%;padding: 12px;border: 1px solid
#ccc;borderradius: 4px;box-sizing: border-box;margin-top: 6px;margin-bottom:
16px;resize: vertical;} input[type=submit] {background-color:green;color:
white;padding: 12px 20px;border:
none;border-radius: 4px; cursor: pointer;} input[type=reset]{background-
color:green;color: white;padding: 12px 20px;border: none;border-radius:
4px;cursor: pointer;} input[type=reset]:hover {background-color: #45a049;}
input[type=submit]:hover {background-color: #45a049;}
.container {border-radius: 5px;background-color: #f2f2f2;padding: 20px;}
</style> </head>
<body bgcolor="lightblue">
<h1 align="center">*---*---REGISTRATION---*---*</h1> <hr color="orange">
<div class="container"> <form>
NAME:<input type="text"><br>
GENDER:<input type="radio" name="gender" value="MALE">MALE
<input type="radio" name="gender" value="FEMALE">FEMALE<br><br>
OCCUPATION:<select name:"dropdown">
<option value:"student" selected>STUDENT</option> <option
value:"teacher">TEACHER</option> <option value:"others">OTHERS</option>
</select><br>
PHONE:<input type="text"><br>
E-MAIL ID:<input type="text"><br>
HOBBIES:<input type="checkbox"id="hobbies" value="Browsing"/>
<input type="checkbox"id="hobbies" value="Reading Books"/>
<input type="checkbox"id="hobbies" value="Driving"/>
<input type="checkbox"id="hobbies" value="Gardening"/><br/><br>
USER ID:<input type="text"><br>
PASSWORD:<input type="password"><br>
RETYPE PASSWORD:<input type="password"><br>
<a href="userlogin.html">BACK</a> <input type="submit" value="SUBMIT"/>
<input type="reset" value="RESET"/> </form></div></body></html>
Shoppingcart.html
<html><head><title>5(i)</title></head>
<body bgcolor="aqua"> <h2 align="center"><u>make sure you have made the payment if
not proceed to payment</u></h2> <h2 align="center"><u>order conformation</u></h2>
<form method="get"> <table cellpadding="5" border="1" cellspacing="0" align="center">
<tr> <th>s.no</th><th>book id</th><th>book name</th><th>ordered date</th>
<th>conformation status</th></tr><tr><th>1.</th> <td>book001</td><td>pride and
prejustice</td><td>12/03/2017</td>
<td>conformed</td></tr><tr><th>2.</th><td>book032</td><td>gulliver's travells</td>
<td>18/05/2017</td><td>conformation pendind</td></tr><tr><th>3.</th>
<td>book031</td><td>children
stories</td><td>02/06/2017</td><td>conformed</td></tr></table><br/>
<table align="center"><tr><th><a href="payment.html" target="_top">proceed to
payment</a></tr></th></table> </body></html>
Userlogin.html
<html> <body bgcolor="lightblue"> <center> <font color="purple">
<h1>USER LOGIN FORM</h1></font><u>
<p>ALREADY U HAVE AN ID "LOGIN" OTHERWISE
"REGISTER"</p><br/><br/></u>
<form>
USER ID: <input type="text" value="ENTER ID"/><br/><br/><br/>
PASSWORD: <input type="password"><br/><br/> <a href="5.html">HOME</a>
<input type="submit" value="click"/> <a href="registration.html">REGISTER</a>
</form></center></body></html>
Userprofile.html
<!DOCTYPE html> <html> <head> <style> table
{border-collapse: collapse;width: 100%;} th, td
{text-align: left;padding: 8px;} tr:nth-
child(even){background-color: #f2f2f2} th
{background-color:blue;color: white;}
</style></head><body><h1 align="center">User Profile</h2>
<table>
<tr><th>S.no</th><th>Username</th><th>D.O.B</th><th>Address</th><th>Occupation</t
h></tr> <tr><td>1</td><td>Ramu.P</td> <td>12<sup>th</sup> Jan
1980</td><td>H.No:22/12/1/M.G.Road</td> <td>Engineer</td></tr>
<tr><td>2</td><td>Mohan.R</td><td>23<sup>rd</sup>May
1982</td><td>H.No:22/12/1/M.G.Road</td><td>Driver</td></tr>
<tr><td>2</td><td>Pavani.V</td><td>27<sup>th</sup>July
1983</td><td>H.No:22/12/1/M.G.Road</td><td>Software Engineer</td></tr>
<tr><td>2</td><td>Sheshu/D</td><td>07<sup>th</sup>March
1984</td><td>H.No:12/1/M.G.Road</td><td>DBA</td></tr>
<tr><td>2</td><td>Surendar.R</td><td>29<sup>th</sup>May
1982</td><td>H.No:22/12/11,BalaM.GRoad</td><td>Professor</td></tr>
</table> <center><b> <a href="5.html">Home</a> </body></html>
Netbanking.html
<HTML><HEAD> <H1 ALIGN="CENTER"><U>NET BANKING</U></H1></head>
<body bgcolor="#1E90FF"><form method="get">
<TABLE BORDER="0" CELLPADDING="5" ALIGN="CENTER"><TR><TH>
SELECT BANK:</TH><TH><SELECT>
<OPTION>SELECT</OPTION> <OPTION>STATE BANK OF INDIA</OPTION>
<OPTION>INDIAN BANK</OPTION> <OPTION>INDIAN OVERSEAS
BANK</OPTION> <OPTION>HDFC</OPTION> <OPTION>CITY UNION
BANK</OPTION></SELECT></TH></TR> <TR><TH>USER NAME:</TH>
<TH><INPUT TYPE="TEXT" MAXLENGTH="25" SIZE="25"></th></tr>
<TR><TH>PASSWORD:</TH> <TH><INPUT TYPE="PASSWORD"
MAXLENGTH="25" SIZE="25"></th></tr><BR/>
<BR/><TR><TH></TH><TH><A HREF=" ">PROCEED TO SEND
OTP</TH></TR><BR/> <TR><TH>ENTER OTP:</TH>
<TH><INPUT TYPE="NUMBER" MAXLENGTH="3" SIZE="3"></TH></TR>
<BR/></BR/><TR><TH></TH><TH><input type="button" value="Process"
TARGET="RIGHT_COL"></TH></TR></TABLE>
<a href="5.html"><p align="center">HOME</p></a> </BODY></HTML>
Delivery.html
<html><head></head>
<body bgcolor="#1E90FF"><br/><br/><br/><br/>
<h1 align="center"> CASH ON DELIVERY PROCEESED</H1>
<A HREF="5.html"><p align="center">HOME</p></a></body> </html>
5p.HTML
<html> <head> <h1 align="center">PAYMENT PROCEESED</h1> </head></html>
1. 1. Pick 5 corporations and hunt down their current stock prices. i) Place
them in a neatly arranged table with their name, symbol, last price, 52wk
high, 52wk low and PE ratio. ii) The end result should look like the
following. Notice that the first column is aligned left and the rest are
centered. iii) Now alter the last table using shaded rows and no border.
<html>
<head>
<title>Table</title>
</head>
<body>
<table border="3">
<tr>
<th colspan="6">My tech stock picks</th>
</tr>
<tr>
<th align="left" cellspacing="30">NAME</th>
<th align="Center">SYMBOL</th>
<th align="Center">CURRENT</th>
<th align="Center">52WK HI</th>
<th align="Center">52WK LO</th>
<th align="Center">P/E RATIO</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>
2. Create a web page containing three divisions. i) The first division displays
a digital clock on the rightmost end. ii) The width of the first division is
100%.The second division and third division lay side by side. iii) The second
division has an image slider and third division has a color picker and two list
box having font-family and size and a button. When a button is clicked
the background color, font and font size should change for a whole page. Use
JavaScript to implement the above
<html>
<head>
<title>Title</title>
<script>
function displaytime() {
x=getHour();
y=getMin();
z=getSec();
document.getElementById("id1").value=x+" H";
document.getElementById("id2").value=y+" M";
document.getElementById("id3").value=z+" S";
setTimeout(displaytime,1000);
}
function getHour() {
var obj=new Date();
h=obj.getHours();
return h;
}
function getMin() {
var obj=new Date();
h=obj.getMinutes();
return h;
}
function getSec() {
var obj=new Date();
h=obj.getSeconds();
return h;
}
var slideIndex=0;
imageSlider();
function imageSlider() {
var i;
var slide=document.getElementsByClassName("fade");
for(i=0;i<slide.length;i++)
{
slide[i].style.display="none";
}
slideIndex++;
if(slideIndex>slide.length)
{
slideIndex=1;
}
slide[slideIndex-1].style.display = "block";
setTimeout(imageSlider, 2000);
}
function colorChange() {
var x=document.getElementById("mySelect").value;
document.getElementById("color").style.backgroundColor = x;
var y=document.getElementById("myfont").value;
document.getElementById("color").style.fontFamily=y;
var z=document.getElementById("mySize").value;
document.getElementById("color").style.fontSize=z;
}
</script>
<style>
* {box-sizing:border-box}
body {font-family: Verdana,sans-serif;}
.fade {display:none;
border: 5px solid black;
height: 360px;
width: 610px;
}
.image {
max-width: 1000px;
position: absolute;
top: 208px;
background-image: url("full.jpg");
padding: 20px;
height: 400px;
width: 650px;
}
#digitalclock
{
background-color: rgba(0,0,0,0.5);
float: right;
position: absolute;
top:70px;
left: 1000px;
padding: 10px;
border-radius: 10px;
}
#digital{
background-image: url(vit.jpg);
background-size: contain;
position: relative;
width: 100%;
padding: 100px;
}
#digitalclock input[type=text]{
height: 50px;
width: 50px;
border-radius: 5px;
text-align: center;
color: crimson;
background-color: rgba(224, 210, 222, 1);
font-style: italic;
font-size: larger;
-webkit-filter:;
}
#color
{
position: absolute;
top: 208px;
left: 658px;
height: 400px;
width: 700px;
padding: 100px;
}
#new{
position: fixed;
background-color: #bbbbbb;
top: 450px;
left: 850px;
}
#newtext{
background-color: darkviolet;
}
</style>
</head>
<body onload=imageSlider();displaytime();>
<div id="digital">
<div id="digitalclock">
<input id="id1"type="text"><input id="id2" type="text"><input id="id3"
type="text">
</div>
</div>
<div class="image" >
<div class="fade">
<img name="" src="full.jpg" style="height: 350px;
width: 600px;">
</div>
<div class="fade">
<img name="imgm" src="half.jpg" style="height: 350px;
width: 600px;">
</div>
<div class="fade">
<img name="imgm" src="uni.jpg" style="height: 350px;
width: 600px;">
</div>
</div>
<div id="color" style="background-color: darkorange; ">
<div id="newtext">
<p style="border: 3px solid black;" id="text">
VIT University has bagged the top slot in the number of research publications in
2016. After surpassing the Indian Institutes of Technology earlier, the university,
in the last year, overtook the Indian Institute of Science (IISc), Bengaluru, with a
total of 2,598 research publications. The IISC had published 2,563 research
papers.
</p>
</div>
<form>
<div id="new">
Select Color:
<select id="mySelect">
<option value="red" >Red</option>
<option value="blue" >Blue</option>
<option value="green" >Green</option>
<option value="black">Black</option>
<option value="pink">Pink</option>
</select>
<br>
Select Font:
<select id="myfont">
<option value="Arial" style="font-family: Arial">Arial</option>
<option value="'Baskerville Old Face'" style="font-family: 'Baskerville Old
Face'">Baskerville Old Face</option>
<option value="'Berlin Sans FB Demi'" style="font-family: 'Berlin Sans FB
Demi'">Berlin Sans FB Demi</option>
<option value="Century" style="font-family: Century">Century</option>
<option value="'Javanese Text'" style="font-family: 'Javanese Text'">Javanese
Text</option>
</select>
<br>
Size:
<select id="mySize">
<option value="large" >Large</option>
<option value="larger" >Larger</option>
<option value="medium" >Medium</option>
<option value="small">Small</option>
<option value="smaller">Smaller</option>
</select>
<br>
<input type="button" value="click" name="click" onclick="colorChange()">
</div>
</form>
</div>
</body>
</html>
3. . Design the following HTML form using HTML and javascript
i) Utilize CSS shorthand background properties to provide a color and
image. ii) Utilize field set tags. iii) Check no fields are null.
<!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>
Code:
<!DOCTYPE HTML>
<html>
<head>
<title>Register Form</title>
</head>
<body>
<form>
<table>
<tr><td><h1 align="left"><b>Student registration form</b><h1></td></tr>
<tr>
<td>Name :</td>
<td><input type="text"required/></td>
</tr>
<tr>
<td>Register number :</td>
<td><input type="text"></td>
</tr>
<tr>
<td>DOB:</td>
<td>
<input type="date" name="DOB">
</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>
<td>Temporary address</td><td><textarea name="temporary address"
cols="50" rows="4"></textarea></td>
<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>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
****THE END******