here is my html code:
<body>
<p id="text">Change my style</p>
<div>
<button id="jsstyles" onclick="style()">Style</button>
</div>
</body>
here is my javascript:
function style()
{
Text.style.fontSize = "14pt";
Text.style.fontFamily = "Comic Sans MS";
Text.style.color = "red";
}
I dont see a problem in this code and its still not working