In CSS, the outline property is used to create a visible outline around an HTML element, typically for the purpose of indicating focus or providing a visual effect. The outline is displayed outside of the border of an element and does not affect the layout of the page.