Hi! I'm new and I could really use some help. Can someone pls tell me what is wrong with this code? thank you :)

<h2>Enter your name and a number between 1 and 6</h2>
<p>Nom: <input type="text" id="texteNom"><br><br>
Font size (h1 à h6):<input type="number" id="niveau">
<input type="submit" value="check font size" onclick="switch();"><br>
<div id="affichage"></div>

hey @patrick.royalent if it’s the complete code then you need to add a script tag and define the switch function, but it would be helpful if could provide link to code pen or complete code or the challenge links.