<input id="txtComputer">
How do I make my text inside the input tag bigger? I want to make it 24 size font. It would also be good if I can change the font from the default
To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-size. HTML5 do not support the <font> tag, so the CSS style is used to add font size.
You can change the color and size of your text right inside its tag with the color and font-size properties. This is known as inline CSS. You do it with the style attribute in HTML.
<input type ="text" id="txtComputer">
css
input[type="text"] { font-size:24px; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With