How to Change Label color on input focus in HTML

17 Mar

In this post we will learn How to Change Label color on input focus in HTML. Implementation Create a form <form> <label for=”inputelement”>label</label> <input type=”text” id=”inputelement” name=”inputelement” /> <label for=”inputelement1″>label</label> <input type=”text” id=”inputelement1″ name=”inputelement” /> </form> Add this css .labelfocus { background: … Read More »