Commit e8a8cd16 authored by Godavarthi Gnaneshwar's avatar Godavarthi Gnaneshwar

Swecha website with html&css

parent 26c66da4
<html>
<head>
<title>
SWECHA | HOME
</title>
<link rel="stylesheet" href="registration.css" type="text/css"/>
<head/>
<body bgcolor="gray">
<h1> <marquee> SWECHA REGISTRATION FORM </marquee> </h1>
<form>
<table>
<tr>
<td colspan="2" align="center"><div id="title" ><h1>Swecha</h1>
<small>Andhra Pradesh</small>
</div>
</td>
</tr>
<tr>
<td>
<div id="info">
<b>Registration form<br>
<lable>Name *</lable> &nbsp&nbsp&nbsp&nbsp
<input type="text" name="uname" id="uname" placeholder="Enter Your Full Name"/>
<lable>College Name *</lable>&nbsp&nbsp&nbsp&nbsp&nbsp
<input type="clg" name="clg" id="clg" placeholder="Enter Your college name"/><br>
<lable>department *</lable>&nbsp&nbsp&nbsp&nbsp
<select>
<option>select one Dept.</option>
<option>CSE</option>
<option>ECE</option>
<option>EEE</option>
<option>MECH</option>
<option>CIVIL</option>
</select> <br>
<lable>date of birth *</lable><br>
<input type="text" name="date" id="date1" placeholder="DD/MM/YYYY"/> <br>
<lable>E.Mail *</lable>&nbsp&nbsp&nbsp&nbsp
<input type="text" name="email" id="email" placeholder="enter mail @gmail.com"/><br>
<lable>Phone Number *</lable>&nbsp&nbsp&nbsp&nbsp
<input type="text" name="num" id="num" value="+91"/> <br>
<lable>Gender *</lable>&nbsp&nbsp&nbsp&nbsp
<input type="radio" name="gen" id="gen" value ="female" >Female</input>
<input type="radio" name="gen" id="gen" value ="male" >Male</input> <br>
<lable>How Do You Know About Swecha </lable>
<textarea cols="40"></textarea>
<input type="submit" name="submit" value="Submit" onclick="validate()"/>
<input type="Reset" name="reset" value="Reset"/> </b>
</div>
</td>
<td>
<img src="/home/swecha/Pictures/swecha_l.png" height="590" width="900"/>
</td>
</tr>
<tr>
<td colspan="2">
<div id="alert">
<marquee>Stay tuned to swecha for more updates,and make &lt3 </marquee>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div id="lstline" align="center">
Bye see you soon
</div>
</td>
</tr>
</table>
</form>
<script>
function validate()
{
var name = document.getElementById("uname").value;
var clg=document.getElementById("clg").value;
var phn=document.getElementId("num").value;
if(name=="")
{
window.alert("User name can't be empty");
}
if(clg=="")
{
window.alert("college name can't be empty");
}
if((phn.Isnumeric)&&(phn.Length))
{
window.alert("Enter a valid number");
}
}
</script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment