I am trying to change the color of the text using javascript but something as simple as this isnt working and I dont understand why..
<!DOCTYPE html>
<html>
<script>
var y = document.getElementById('ya');
y.style.color = "red";
</script>
<p style="font-size:100px;" id="ya">
hi
</p>
</html>