Careeroza
Forms
Styled Form Fields
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
form { font-family: Arial; max-width: 320px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, select { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; }
input:focus, select:focus { outline: none; border-color: #04AA6D; box-shadow: 0 0 0 3px rgba(4,170,109,.25); }
input:invalid:not(:placeholder-shown) { border-color: crimson; }
</style>
</head>
<body>
<form>
<label for="e">Email</label>
<input id="e" type="email" placeholder="[email protected]">
<label for="c">Course</label>
<select id="c"><option>HTML</option><option>CSS</option></select>
</form>
</body>
</html>Result