Prop Style Outline
## HTML DOM Style outline Property
## Example
Set a 4px wide border, style "dotted", color "#00ff00":
```javascript
document.getElementById("myDiv").style.outline = "#00ff00 dotted 4px";
```
Try it yourself Β»
## Definition and Usage
The outline property sets all the outline properties in one declaration.
This property is a shorthand for the following outline properties:
* (
* ( (required)
* (
## Browser Support
!( !( !( !( !(
All major browsers support the outline property.
Note: IE8 and earlier versions do not support the outline property.
## Syntax
Set the
YouTip