+ 1

Whats the difference

Whats the difference between size and font-size in web

5th Jul 2025, 9:59 AM
Abdulrahman alturk
Abdulrahman alturk - avatar
1 Answer
+ 2
font-size is a CSS property which controls the size of text. size is an HTML attribute that controls the visibility of certain HTML elements(differently), such as: when used on <input>, it defines how many characters can be shown at once. when used on <select>, it defines how many options inside are visible at once without scrolling
5th Jul 2025, 11:45 AM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar