0% found this document useful (0 votes)
7 views

exp2

The document outlines an HTML program for a student registration form. It includes form elements such as input fields for name, gender, course, and address, along with a submit button. Additionally, there is a JavaScript function to show an alert when the form is submitted.

Uploaded by

it22223
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

exp2

The document outlines an HTML program for a student registration form. It includes form elements such as input fields for name, gender, course, and address, along with a submit button. Additionally, there is a JavaScript function to show an alert when the form is submitted.

Uploaded by

it22223
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EXPERIMENT-2

Objective:- Write HTML program for student registration form.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=<device-width>, ini al-scale=1.0">
< tle>Document</ tle>

<style>
body {
margin-top: 100px;
margin-bo om: 100px;
margin-right: 150px;
margin-le : 80px;
}
body.thick {
font-weight: bold;
}
</style>
<script>
func on showAlert(event) {

event.preventDefault();

alert("Form has been submi ed!");

}
<op on value="female">Female</op on>
<op on value="other">Other</op on></select><br></br>

<label for="course">Course:</label>
<input type="text" id="course" name="course" ><br></br>
<label for="Address">Address:</label>
<textarea id="Address" name="Address" rows="2" cols="20"></textarea><br></br>
<bu on type="submit">Register</bu on>&nbsp;&nbsp;
</form>
</dialog>
</body>
</html>

You might also like