<script> var base = parseInt(prompt("Type the width of a Triangle : ")); var height = parseInt(prompt("Type the height of a Triangle : ")); var solving_triangle = (base * height)/2; document.write("<br>"); document.write("<h2 style='color:blue; text-align:center;'>Area of Triangle</h2>"); document.write("<b style='color:blue; font-size:18px;'> The <b style='color:red;'> Width</b> of Triangle is <b style='color:red;'>" + base + "</b>.</b></b><br /><br />"); document.write("<b style='color:blue; font-size:18px;'> The <b style='color:red;'> Height</b> of Triangle is <b style='color:red;'>" + height + "</b>.</b></b><br /><br />"); document.write("<b style='color:blue; font-size:18px;'> The <b style='color:red;'> Area</b> of Triangle is <b style='color:red;'>" + solving_triangle + "</b>.</b></b>"); </script>