font-size: ***;

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

The font-size property specifies the size of the font.

The font size of text in the form fields can be specified by applying this property to the INPUT, TEXTAREA, and SELECT elements.


input, select, textarea {
font-size: 100%;
}

Property Value Explanation
font-size length, %, or keywords the size of the font

Example


<html>
<head>
<title>TAG index</title>

<style type="text/css">

textarea {
width: 250px;
height: 5em;
}

input, select, textarea {
font-size: 150%;
}

</style>

</head>
<body>

<form method="POST" action="example.cgi">

<p><input type="text" name="item1" value="Example"></p>

<p><select name="item2">
<option value="select1">Select1</option>
<option value="select2">Select2</option>
<option value="select3">Select3</option>
</select></p>

<p><textarea name="item3" cols="50" rows="7">Example</textarea></p>

<p><input type="submit" value="Submit"></p>

</form>

</body>
</html>

Output

This form cannot submit because of a sample.