More Related Content
Similar to Html code revision (20)
Html code revision
- 3. CODE
<!DOCTYPE HTML>
<!--COMMENTS -->
<html>
<head>
<title>Hotel Menu</title>
</head>
<body>
<form>
<h1>Hotel Derbi</h1>
<h3>Veg</h3>
<input type="checkbox" name="c1" /> Chilli Paneer <br>
<input type="checkbox" name="c2" /> Spring Roll <br>
<input type="checkbox" name="c3" /> Chana Chaat <br>
<h3>Non-Veg</h3>
<input type="checkbox" name=“d1" /> Chicken Chilli<br>
<input type="checkbox" name=“d2" /> Chicken Butter Masala<br>
<input type="checkbox" name=“d3" /> Chicken Handi <br> <br>
<input type="submit" value="ORDER" />
</form>
</body>
</html>
- 5. DROP-DOWN CODE
<HTML>
<head>
<title> Details </title>
</head>
<body>
<h1> My Details </h1>
<form name="f1">
Student Name
<input type="text" name="t1"><br>
SelectCollege
<select name="s1">
<option>Narayana Junior College</option>
<option>Mutha Junior College</option>
<option>RKT College</option>
<option>Vivekananda College</option>
</select><br>
<input type="submit" value="Submit">
<input type="reset" value="Clear" >
</form>
</body>
</HTML>
- 6. REGISTRATION FORM : HTML CODE
<body bgcolor="lightblue">
<h1>Student Registration Form</h1>
<hr >
<form name="form1" method=post
action="add.html“ onSubmit=f1();>
ENTER NAME:
<input type="textbox" maxlength=10
required name=t1>
<br><br>
ENTER ADDRESS:
<textarea rows="5" cols="70"
name=t3></textarea>
<br><br>
GENDER:<br>
<input type="radio" name=r1>MALE<br>
<input type="radio" name=r1 >FEMALE
<BR>
Select Board: <br><BR>
<select name=s1>
<option value=1>State Board</option>
<option value=2>CBSE</option>
<option value=3>ICSE</option>
<option value=4>IB</option>
</select>
<br> <br>
Extra Curricular Activity: <br>
<input type="checkbox" name=c1
checked>Dance<br>
<input type="checkbox"
name=c1>Music<br>
<input type="checkbox"
name=c1>Paint<br>
<br>
<input type="reset" value="Clear">
<input type="submit" value="submit">
</form>
</body>
</html>
<html>
<head>
<title>Registration Form</title>
<script type="text/javascript">
function f1()
{
var name = document.form1.t1.value;
alert(name);
alert(name + "The form is submitted");
}
</script>
</head>
Editor's Notes
- These can be changed to reflect your school’s specific rules.
- *Change this verbiage to the language your school uses.