Defining font sizes in px is not accessible, because the user cannot change the font size in some browsers. For example, if you are using chrome then check your browser default font-size here- chrome://settings/appearance or open chrome go settings -> appearance then scroll down, now you see the option of Font size.
Problem is if you set font-size something larger than your browser default then it's not going to work because your browser also use same fixed unit or default font-size so it is recomended to use rem instead px
Please give a read- https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#pixels
Chrome
Safari
Firefox
Defining font sizes in px is not accessible, because the user cannot change the font size in some browsers. For example, if you are using chrome then check your browser default font-size here- chrome://settings/appearance or open chrome go settings -> appearance then scroll down, now you see the option of Font size.
Problem is if you set font-size something larger than your browser default then it's not going to work because your browser also use same fixed unit or default font-size so it is recomended to use
reminsteadpxPlease give a read- https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#pixels
Chrome
Safari
Firefox