<html>
<head>
<style>
p#myP {
text-decoration: underline;
}
</style>
</head>
<body>
<p id="myP">
Hello world!
</p>
<p>Click the "Try it" button to change the text-decoration-style of the paragraph.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myP").style.textDecorationStyle = "wavy";
}
</script>
<p><b>Note:</b> The textDecorationStyle property does not work in Internet Explorer, Edge, or Safari.</p>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_textdecorationstyle by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:42 GMT -->
</html>