Outline property

by Hamdi Gaied

HTML

<h3>Focus on the other input</h3>
<input type="text" id="with-outline" placeholder="With outline">
<input type="text" id="without-outline" placeholder="Without outline">

CSS

body {
  background: #1f2227;
  color: #fff;
}

input {
  font-size: 1rem;
}

#without-outline {
  outline: none;
}

JavaScript

document.getElementById("with-outline").focus();