Styling Forms
14.7
Lesson

Font and Font Size for Text Inputs

By default, the text field has a sans-serif font and the textarea has a serif font. The font sizes are different too.

Most of the HTML elements inherit the font family and font size from body, but the text input fields don’t. They use their default values. TO customize, we need to specify these properties separately: