Hello. I'm new so please bear with me.
Basically, I want to define a certain variable and make it appear within a HTML code.

e.g.
<input type="text" id="RANDOMTEXT">
<script>
var x = document.GetElementById("RANDOMTEXT");
</script>

I want to insert "RANDOMTEXT" within a HTML code, and it needs to auto-preview:

<font size="RANDOMTEXT">Hello</font>

Can anyone help me out? Thank you so much.