Jakie style należy użyć
<input type="text" class="form" name="name" />
.form { border: 1px solid black; } .form:hover { border: 1px solid red; }
<input type="text" class="form" name="name" onfocus="this.style.backgroundColor='green'" onblur="this.backgroundColor='white'" />
<input type="text" name="name" onfocus="this.style.backgroundColor='green'" onblur="this.style.backgroundColor='white'" />