Font-size CSS Property
Font-size CSS property specifies the font size of a text which it is applied to. This value does not accept only numerical and absolute values, but it can accept percentages as well. Let's take a closer look of these three possibilities. First, an example of numerical value follows:
If this CSS code is used, a web browser will render text wrapped with <p> element at 10px.
Furthermore, an example of an absolute value follows:
In other words, font size is defined with some of the available keywords (xx-small, x-small, small, medium, etc). The sizes of these values are not defined, but small should be bigger than x–small, medium should be bigger than small, etc).
Finally, a percentage value can be also used, such as in the following example:
If this property is set, the size of the text wrapped with <p> element will be 80% of the parent element’s font size.