<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>CSS text-decoration Property</h1>
<p style="text-decoration-line: underline">This is a sentence</p>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("p")[0];
function myFunction(){
x.style.textDecoration = "underline red solid";
}
</script>
<p><strong>Note</strong>: click on the button to set the css 'text-decoration' property.</p> </body>
</html>