You can remove such dotted outline from around a link.

Remove Dotted Border Around Links on Mouse Click

Dotted outline that appears around an HTML anchor link when it is clicked may not be visually appealing to many. Learn how to remove it.