/ CSS, FRONT-END

How to add or remove dotted outline when focusing an element in CSS?

Question

photo

Like photo above, how to remove the dotted outline when focusing to this element?

In other case, how to add this outline when focusing?

Answer

Remove

Add outline:none this styling.

Add

Solution is below:

a:focus {
    outline: dotted 1px
}

Reference


This is the end of post