Create visually appealing forms by styling each form element for a cohesive look.
Source Code
form {
max-width: 500px;
margin: 0 auto;
}
input, textarea {
width: 100%;
padding: 8px;
margin: 10px 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
button[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #45a049;
}