<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>CSS font-weight Property</h1>
<p>This is a paragraph</p>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("p")[0];
function myFunction(){
x.style.fontWeight = "900";
}
</script>
<p><strong>Note</strong>: click on the button to change 'font-weight' from normal to 900.</p> </body>
</html>