,
Welcome to Scribd!
Question 1: Create Time Table in HTML As Given in Attached Image
AI-enhanced
AI-enhanced title and description
1SYBCA SEM 4 Web Designing Roll no:-120
Question 2: Create registration page in HTML using form and table tags.<html><body><TITLE> Regitrastion form</TITLE><center><form method="get" bordercolor="blue" ><fieldset><legend><h4> <font color="gold">REGISTRATION </gold></h4></legend> <table border="4" style="padding:20px;" cellspacing="4" bordercolor="pink" bgcolor="snow" width='600px'> <!-- <caption> Registration </caption> --> <tr> <td style="text-align:left;"> <b>Student's Name : </b> </td> <td> <input type="text" id="sname" name="sname" /> </td> </tr> <tr> <td style="text-align:left"> <b>Password : </b> </td> <td> <input type="password" id="pswd" name="pswd" /></td> </tr> <tr> <td style="text-align:left"> <b>Phone No : </b></td> <td> <input type="text" id="phno" name="phno" /> </td> </tr> <tr> <td style="text-align:left"> <b>Email : </b></td> <td> <input type="email" id="email" name="email" /> </td> </tr> <tr> <td style="text-align:left"> <b>Address : </b></td> <td> <textarea name="adr" id="adr" rows="5" cols="25"> </textarea> </td> </tr> <tr> <td style="text-align:left"> <b>Roll No. : </b></td> <td> <input type="text" id="rno" name="rno" /> </td> </tr> <tr> <td style="text-align:left"> <b>Gender : </b></td> <td> <div><input type="radio" id="gndr" name="gndr" value="male" />male</div> <div><input type="radio" id="gndr" name="gndr" value="female" />female</div> </td> </tr> <tr> <td style="text-align:left"> <b>Div : </b></td> <td> <select id="div" name="div" > <option value="div0"selected>----select --- </option> <option value="div1">SYBCA DIV-1</option> <option value="div2">SYBCA DIV-2</option> <option value="div3">SYBCA DIV-3</option> </select> </td> </tr> <tr> <td style="text-align:left" colspan="2"> <b>which Subject do you like most? </b></td> </tr> 2SYBCA SEM 4 Web Designing Roll no:-120
<tr> <td style="text-align:center"> subject :</td> <td style="text-align:left" > <input type="checkbox" id="cwd" name="cwd" value="wd" />WD <input type="checkbox" id="cjava" name="cjava" value="java" />JAVA <input type="checkbox" id="cnet" name="cnet" value="dotnet" />.NET <input type="checkbox" id="cse" name="cse" value="se" />SE <input type="checkbox" id="cis" name="cis" value="is" />IS </td> </tr> <tr> <td style="text-align:left" colspan="2"> <b>which faculty do you like most? </b></td> </tr> <tr> <td style="text-align:center" > faculty </td> <td> <select id="fklty" name="fklty" size="3"multiple> <option value="viral patel">Viral Patel</option> <option value="heta desai">Heta Desai</option> <option value="swety tamakuwala">Sweety tamakuwala</option> <option value="radhika amlani">Radhika Amlani</option> <option value="piyush arora">Piyush Arora</option> </select> </td> </tr> <tr> <td style="text-align:left" colspan="2"> <b>what do you want to be in future? </b></td> </tr> <tr> <td style="text-align:center"> field</td> <td> <input list="fld"> <datalist id="fld"> <option value="Developer"> <option value="Designer"> <option value="Tester"> <option value="Administrator"> </datalist> </td> </tr> <tr> <td style="text-align:left"> <b>Percentage : </b></td> <td> 0 <input type="range" id="a" name="a" value="50" /> 100 <br> <output name="x" >50</output>% </td> </tr> <tr > <td style="text-align:center" colspan="2"> <input type="submit" style="color:blue" value="submit" id="sbtn" name="sbtn" /> <input type="reset" style="color:green" value="Reset" id="rst" name="rst" /> </td> </tr> </table> 3SYBCA SEM 4 Web Designing Roll no:-120
</fieldset></form></center></body></html>OUTPUT:
Question 3 : Apply validation using Java Script on registration page which you have already design in question 2.<html><head> <script type="text/javascript"> function regvalidate() {// name validation var nam=document.getElementById("sname").value; if(nam==""||nam==null) { alert('student name not be empty. you must have enter name '); //document.getElementById("msg").innerHTML = 'student name not be empty. youmust have enter name'; return false; } var letters=/^[A-Za-z]+$/; if(!nam.match(letters)) { alert('only allows alphbet value '); //document.getElementById("msg").innerHTML = 'only you can enter alphabet'; return false; }// password validation var psw=document.getElementById("pswd").value; if(psw=="" || psw==Null) { alert('password not be should empty '); //document.getElementById("msg").InnerHTML = 'password not be should empty '; return false; }// phone no. validation var phn=document.getElementById("phno").value; if(phn=="") 4SYBCA SEM 4 Web Designing Roll no:-120
{ alert('phone no must be required '); //document.getElementById("msg").innerHTML = 'must be enter your phoonenumber'; return false; } var number=/^[0-9]+$/; if(!phn.match(number)) { alert('only allows numerices value '); return false; } if(phn.length!=10) { alert('phone number must should be 10 digit '); return false; }// email validation var eml=document.getElementById("email").value; if(eml=="") { alert('email-id not be empty. you must have enter email-id '); //document.getElementById("msg").innerHTML = 'student name not be empty. youmust have enter name'; return false; } var mailformat = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if(!eml.match(mailformat)) { alert('not valid email !!!'); //document.getElementById("msg").innerHTML = 'not valid email !!!'; return false; }// adress validation var adr=document.getElementById("adrs").value; if(adr.trim()=="" || adr==null) { alert('adress not should be empty '); return false; } var patrn=/^[0-9A-Za-z\,\-]+$/; if(!(adr.trim()).match(patrn)) { alert('only 0-9,A-Z,a-z character allow '); return false; } if(adr.lenth>75) { alert('maximum character allow only 75. you have entertotal'+adr.length+'charecters'); return false; }// roll no validation var rn=document.getElementById("rno").value; if(rn=="" || rn==Null) { alert('roll no not be should empty please enter your roll number'); 5SYBCA SEM 4 Web Designing Roll no:-120
var letters=/^[A-Za-z]+$/; if(!vfld.match(letters)) { alert('only allows alphbet value. ........... !!!'); return false; } if(vfld=="") 6SYBCA SEM 4 Web Designing Roll no:-120
{ alert('Please select or input atleast one field what do you want to be in future...!!!'); return false; } return true; } </script></head><body><TITLE> Regitrastion form</TITLE><center><form name="rform" id="rform" method="get" bordercolor="blue" regvalidate();" ><fieldset><legend><h4> <font color="gold">REGISTRATION </gold></h4></legend> <table border="4" style="padding:20px;" cellspacing="4" bordercolor="pink" bgcolor="snow" width='600px'> <!-- <caption> Registration </caption> --> <tr> <td style="text-align:left;"> <b><font style="color:red">*</font>Student's Name : </b> </td> <td> <input type="text" id="sname" name="sname" /> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Password : </b> </td> <td> <input type="password" id="pswd" name="pswd" /></td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Phone No : </b></td> <td> <input type="text" id="phno" name="phno" /> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Email : </b></td> <td> <input type="text" id="email" name="email" /> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Address : </b></td> <td> <textarea name="adrs" id="adrs" rows="5" cols="25"> </textarea> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Roll No. : </b></td> <td> <input type="text" id="rno" name="rno" /> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Gender : </b></td> <td> <div><input type="radio" id="gndr" name="gndr" value="male" />male</div> <div><input type="radio" id="gndr" name="gndr" value="female" />female</div> </td> </tr> <tr> <td style ="text-align:left"> <b><font style="color:red">*</font> Date of birth: </b></td> <td><input type="date" id="dob" name="dob"> </td> </tr> <tr> <td style="text-align:left"> <b><font style="color:red">*</font>Div : </b></td> <td> <select id="div" name="div" > 7SYBCA SEM 4 Web Designing Roll no:-120
Question-4 : Design a website for college. Create minimum following 5 pages for this website.1) Home page - describe the college2) registration page - for collecting students data3) login page - for student/faculty login4) Photo Gallery page - which show photos related to college5) Contact Us page - display college address and contact numbers<html> <head> <title>link page</title> </head> <body bgcolor="lightyellow"> <center> <h3 style="color:orange"> Select</h3> </center> <a href="home page.htm"target="rightside">HOME PAGE</a><br> <a href="registration page.htm"target="rightside">REGISRATION</a><br> <a href="login page.htm"target="rightside">LOGIN</a><br> <a href="photo gallary page.htm"target="rightside">PHOTO GALLARY</a><br> <a href="contact us page.htm"target="rightside">CONTACT US</a><br> </body> 9SYBCA SEM 4 Web Designing Roll no:-237
</html>1) Home page - describe the college<html> <head> <title>Home page</title> </head> <body bgcolor="lightyellow"> <fieldset> <legend align="center"> <table border="2"align="center"> <tr><td> <table border="1"align="center"> <tr> <td><img src="home page photo.jpg"width="200"></td> </tr> </table> </td></tr> </table> </legend><br><br> <table align="center"> <tr> <td colspan="2"><font size="5"><b>Founder</b><br>Late Shri. Shambhubhai V.Patel<br></td> </tr> <tr> <td><img src="founder.png"width="150" border="1"></td> <td><b>"A true Gandhian Leader"</b>, a person who dedicated his entire life to theprinciples of honesty, trust, unity and encouraged positive thinking together by providing inspiring leadership.With a view to help the needy people, he established many organizations which still today spread the fragrance of his deeds.He tirelessly endeavored to serve the society and has become immortal in the memory of people.</td> </tr> </table> <p> -</p> <p> <b>Why IT ?</b><br> Information technology is a progressive and constantly changing industry, promising a widerange of opportunities. If you have always loved the idea of working with computers, a career in IT is the idealpathway for you to choose. No matter what industry you’re looking into, most modern businesses need people withgeneral skills and knowledge of how to support information technology activities in the workplace. </p> <p> -</p> <p> <b>Why Management ?</b><br> Programme Design Young graduates with no prior experience in business but who exhibitentrepreneurial ambitions, and The next generation of Family Business owners. To promote the development of socio-economically sensitive, responsible and effective managers and management academics of tomorrow. </p> </fieldset> </body> 10SYBCA SEM 4 Web Designing Roll no:-237
</html>2) registration page - for collecting students data3) login page - for student/faculty login<html> <head> <title> Login Form</title> <style> *{ font-size:15px; } table{ margin-top:75px; } tr{ margin:25px; } </style> <script type="text/javascript"> function loginvalidate() {// name validation var nam=document.getElementById("sname").value; if(nam==""||nam==null) { alert('student name not be empty. you must have enter name '); return false; } var letters=/^[A-Za-z]+$/; if(!nam.match(letters)) { alert('only allows alphbet value '); return false; }// password validation var psw=document.getElementById("pswd").value; if(psw=="" || psw==Null) { alert('password not be should empty '); return false; } alert('you have login successfully '); return true; } </script> </head> <body bgcolor="lightgreen"> <center> <form name="loginform" id="loginform" method="get" bordercolor="blue" >loginvalidate();" > <table style="padding:40px;color:orange" cellspacing="5"width='600px'bgcolor="lightyellow"> <tr> <th style="text-align:center;font-size:30px"colspan="2"> LoginHere</th> </tr> <tr> <td style="text-align:left;"> <b>Student's Name : </b> </td> 11SYBCA SEM 4 Web Designing Roll no:-237
<br> </body></html>5) Contact Us page - display college address and contact numbers<html> <head> <title>contact us</title> </head> <style> *{ font-size:15px; } table{ font-family:comic sans ms; margin-top:50px; } tr{ margin:25px; } </style> <!--background-color:lightblue;--> <body bgcolor="skyblue"> <center> <table style="padding:40px;color:blue" cellspacing="5"width='600px'bgcolor="lightyellow"> <tr> <th style="text-align:center;font-size:30px"colspan="2">ContactDetails</th> </tr> <tr> <td><b> College Address :</b></td> <td> Shri Shambhubhai V. Patel College Of Computer ScienceAnd Business Management,Sumul Dairy Road Near I.C. Gandhi High School,Surat,Gujarat 395008. </td> </tr> <tr> <td><b> Telephone</b></td> <td> 0261-2537772 </td> </tr> <tr> <td><b> Email : </b></td> <td> svpatelcsbm@gmail.com </td> </tr> </table> </center> </body></html>OUTPUT:
13SYBCA SEM 4 Web Designing Roll no:-237
Question-5 create structure shown in image using Bootstrap Grid System classes. Image is attached.<!DOCTYPE html><html lang="en"><head> <title>Bootstrap Grid System Classes</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <style type="text/css"> div{ font-size:15pt; border:solid; border-color:white; border-width:3px; } </style></head><body>
<div class="row"> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> <div class="col-md-1" style="background-color:lightgrey;"align="center">span <br>1 </div> </div> <div class="row"> <div class="col-md-4" style="background-color:lightgrey;"align="center">span 4</div> <div class="col-md-4" style="background-color:lightgrey;"align="center">span 4</div> <div class="col-md-4" style="background-color:lightgrey;"align="center">span 4</div> </div> <div class="row"> <div class="col-md-4" style="background-color:lightgrey;"align="center">span 4</div> <div class="col-md-8" style="background-color:lightgrey;"align="center">span 8</div> </div> <div class="row"> <div class="col-md-6" style="background-color:lightgrey;"align="center">span 6</div> <div class="col-md-6" style="background-color:lightgrey;"align="center">span 6</div> </div> <div class="row"> <div class="col-md-12"style="background-color:lightgrey;"align="center">span 12</div> </div>
</div>
14SYBCA SEM 4 Web Designing Roll no:-237
</body></html>OUTPUT:
Question-6 Create one table which have 5 rows and 4 columns. Take some data for this table. Apply followingbootstrap classes for table.1. Apply .table class in table tag and display it.2. Apply .table-striped class and display zebra-stripes rows in table.3. Apply .table-bordered class and adds borders on all sides of the table and cells.<html> <head> <title> Student data</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head> <body> <table class="table table-striped table-bordered"> <caption>student marks data</caption> <thead class="thead-light"> <tr> <th>Roll no</th> <th>Student-Name</th> <th>Marks</th> <th>Percentage</th> </tr> </thead> <tbody> <tr> <td>01</td> <td>Snehal</td> <td>41/50</td> <td>82%</td> </tr> <tr> <td>02</td> <td>Roshni</td> <td>48/50</td> <td>96%</td> </tr> <tr> <td>03</td> <td>Sweta</td> <td>40/50</td> <td>80%</td> </tr> <tr> <td>04</td> <td>Bhumi</td> <td>45/50</td> 15SYBCA SEM 4 Web Designing Roll no:-237
<td>90%</td> </tr> </tbody> </table> </body></html>OUTPUT:
Question-7 : Take any one image and apply bootstrap classes for different shape of images to display as following.Also apply .img-responsive class of bootstrap to make the image responsive.<html> <head> <title>Responsive Image</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <style type="text/css"></style> </head> <body> <div class="container"> <img src="teddy.jpeg" class="img-rounded img-fluid" width="30%"> <img src="rabbit.jpg" class="img-circle img-fluid" width="30%"> <img src="flower.jpg" class="img-thumbnail img-fluid " width="30%"> </div> </body></html>OUTPUT:
Question-8 : create different size and different colors buttons. Apply bootstrap classes for buttons. Also try toActive/Disabled Buttons.<!DOCTYPE html><html lang="en"> <head> <title>Bootstrap question-8</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> </head> <body> <div class="container">
16SYBCA SEM 4 Web Designing Roll no:-237
<h2>Button Styles</h2> </br> <div> <button type="button" class="btn">Basic</button> <button type="button" class="btn btn-default">Default</button> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-danger">Danger</button> </div> </br> <div> <button type="button" class="btn btn-primary btn-lg">Large</button> <button type="button" class="btn btn-primary">Normal</button> <button type="button" class="btn btn-primary btn-sm">Small</button> <button type="button" class="btn btn-primary btn-xs">XSmall</button> </div></br> <div> <button type="button" class="btn btn-primary active">Active Primary</button> <button type="button" class="btn btn-primary disabled">Disabled Primary</button> </div> </div> </div> </body></html>OUTPUT:
</div> <h2>Nesting Button Groups</h2> </br> <div class="btn-group"> <button type="button" class="btn btn-primary">Amul </button> <button type="button" class="btn btn-primary">Havmor </button> <button type="button" class="btn btn-primary">chocalate chips </button> <button type="button" class="btn btn-primary">American drifriuts </button> <div class="btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">venila <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">candy </a></li> <li><a href="#">kin-kone </a></li> </ul> </div> </div> <h2>Justified Button Groups</h2> <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-primary">Amul </a> <a href="#" class="btn btn-primary">Havmor</a> <a href="#" class="btn btn-primary">chocalate chips </a> <a href="#" class="btn btn-primary">American drifriuts </a> <a href="#" class="btn btn-primary">venila</a> </div> </div> </body></html>OUTPUT:
Question-10 : Create one registration page (without using table) to apply bootstrap form classes. Take user name(use input tag), address (use textarea tag) and select city (use select tag to create dropdown menu of city select)fields. Also take one submit button. Do following.1. Make bootstrap vertical registration form (default)2. Make bootstrap inline registration form3. Make bootstrap horizontal registration form<html lang="en"> <head> <title>Bootstrap question-10</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> 18SYBCA SEM 4 Web Designing Roll no:-237
</head> <body>
<div class="container"> <h2><b><u>Vertical Form</u></b></h2> <form> <div class="form-group"> <label for="User Name">User Name:</label> <input type="User Name" class="form-control" id="User Name"placeholder="Enter User Name" name="User Name"> </div> <div class="form-group"> <label for="Addr">Address:</label> <textarea name="adr" rows="3" class="form-control"placeholder="Enter Address"></textarea> </div> <div class="form-group"> <label for="cty">City:</label> <select class="form-control" id="cty" name="cty"> <option selected>--Select City--</option> <option>Surat</option> <option>Vadodara</option> <option>Ahemdabad</option> <option>Rajkot</option> </select> </div> <br /> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> <div class="container"> <h2><b><u>Inline Form</u></b></h2> <form class="form-inline"> <div class="form-group"> <label for="User Name">User Name:</label> <input type="User Name" class="form-control" id="User Name"placeholder="Enter User Name" name="User Name"> </div> <div class="form-group"> <label for="Addr">Address:</label> <textarea name="adr" rows="3" class="form-control"placeholder="Enter Address"></textarea> </div> <div class="form-group"> <label for="cty">City:</label> <select class="form-control" id="cty" name="cty"> <option selected>--Select City--</option> <option>Surat</option> <option>Vadodara</option> <option>Ahemdabad</option> <option>Rajkot</option> </select> </div><br /> <button type="submit" class="btn btn-primary">Submit</button> </form> 19SYBCA SEM 4 Web Designing Roll no:-237
</div> <div class="container"> <h2><b><u>Horizontal Form</u></b></h2> <form class="form-horizontal" > <div class="form-group"> <label class="control-label col-sm-2" for="User Name">UserName:</label> <div class="col-sm-10"> <input type="User Name" class="form-control" id="User Name"placeholder="Enter User Name" name="User Name"> </div> </div> <div class="form-group"> <label class="control-label col-sm-2"for="Addr">Address:</label> <div class="col-sm-10"> <textarea name="adr" rows="3" class="form-control"placeholder="Enter Address"></textarea> </div> </div> <div class="form-group"> <label class="control-label col-sm-2" for="cty">City:</label> <div class="col-sm-10"> <select class="form-control" id="cty" name="cty"> <option selected>--Select City--</option> <option>Surat</option> <option>Vadodara</option> <option>Ahemdabad</option> <option>Rajkot</option> </select> </div> </div><br /> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </body></html>OUTPUT:
20