Write a program in HTML to create a form accept Name,Roll_no,Mobile_no,Email_Address and apply background
color to form and submit button, heading to display at center position with color. *
Answers
Answer:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: rgba(173, 198, 204, 0.856);
}
input{
margin-top: 5px;
margin-bottom: 5px;
margin-left: 5px;
}
</style>
</head>
<body>
<marquee><center><p><h1 style="color: red;">Registration form</h1></p></center></marquee>
<form action="">
Name<input type="text" name="" id="" placeholder="Name">
<br>
Roll no<input type="text" name="" id="" placeholder="Roll no">
<br>
Mobile no<input type="text" name="" id="" placeholder="Mobile no">
<br>
Email address<input type="text" name="" id="" placeholder="Email Address">
<br>
<input type="submit">
</form>
</body>
</html>