Good afternoon, I have a problem .. I'm just starting to see html and I'm following a little pdf. The problem is that I put two buttons, one to change the color and another to change the size. The first button works but the second does not.
function cambiarColor()
{ var tit=document.getElementById('titulo');
tit.style.color='#ff0000'; }
function cambiarTamanoFuente()
{ var tit=document.getElementById('titulo');
tit.style.fontSize=1; }
<html>
<head>
<title>Problema</title>
<script src="funciones.js"></script>
</head>
<body>
<h1 id="titulo">Este es un titulo dinamico</h1>
<input type="button" value="Cambiar Color" onClick="cambiarColor()">
<input type="button" value="Cambiar Color" onClick="cambiarTamanoFuente()">
</body>
</html>
I hope you can help me. Greetings!