This short tutorial shows how the CSS outline property differs from a border, using outline-offset and a color change on focus. It is aimed at beginners learning CSS.
What you’ll learn
✓Add a CSS outline to an element and style its color and dash pattern
✓Offset an outline away from a border with outline-offset
✓Change an outline's color on focus to make keyboard focus visible