Is there a way to do something like this?
<input value="<span style='font-size:10px'>small text</span> <span style='font-size:20px'>BIG TEXT</span>" type="text" />
This code does not work. But can I imitate this?
Mixing styles inside a textbox not possible using pure HTML and CSS. What you will need to look for is a third-party control for richtextbox . Just google your platform ( PHP or ASP.NET ) to find it to your liking.
textbox
richtextbox