Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions Form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div Class="container">
<form action="">
<h1 class="Main_heading" >Payment Form</h1>
<p>Required Fields are followed by *</p>
<h2>Contact Information</h2>
<p>Name: * <input type="text" name="name" required></p>
<fieldset>
<legend>Gender * </legend>
<p>
Male <input type="radio" name="gender" id="male" required>
Female <input type="radio" name="gender" id="female" required >
</p>
</fieldset>
<p>Address: <textarea name="address" id="" cols="100" rows="8"></textarea></p>
<p>Email: * <input type="email" name="email" id="email" required ></p>
<p>Pincode: * <input type="number" name="pincode" id="pincode" required ></p>
<h2>Payment Information</h2>
<p>Card Type: *
<select name="card_type" id="card_type" required>
<option value="">--Select a Card Type--</option>
<option value="Visa">visa</option>
<option value="Rupay">rupay</option>
<option value="Mastercard">mastercard</option>

</select>
</p>
<p>
Card Number * <input type="number" name="Card_number" id="Card_namber" required >
</p>
<p>
Expiration Date: * <input type="date" name="exp_date" id="exp_date" required >
</p>
<p>CVV * <input type="password" name="CVV" id="CVV" required ></p>
<input type="submit" value="Pay Now">

</form>
</div>
</body>
</html>

54 changes: 54 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
*{
box-sizing: border-box;
}

body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
margin: 15px 30px;
font-size: 17px;
padding: 8px;
}

.container {
background-color: #f2f2f2;
padding: 5px 20px 15px 20px;
border: 1px solid lightgray;
border-radius: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea{
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
margin: 10px;
}

fieldset{
background-color: #fff;
border: 1px solid #ccc;
}

.main_heading {
text-align: center;
}

input[type="submit"] {
background-color: #4daea1;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
}

input[type="submit"]:hover{
background: color #4caf84;
}