<!DOCTYPE html>type="text/css"#ex1{border:1px solid red;outline:green dotted thick;}function displayResult(){document.getElementById("ex1").style.outlineColor="#0000FF";}id="ex1"This is some text.type="button" onclick="displayResult()"Change outline colorNote: IE8 supports the outline properties only if a !DOCTYPE is specified.