html – How to remove stroke on input click

Question:

When you click and focus on the input , a stroke appears. How to remove it?

Answer:

input {outline:none;}

The same technique removes the dotted stroke around the clicked link and around any of the form elements.

Scroll to Top