<body>
<p>A paragraph</p>
</body>
- The font-size property applies to the p element
- In CSS, the initial value of the font-size property is medium
- The browser may specify medium as 12pt
In practice:
- If a stylesheet defines the font-size on the p element to be 16pt then that is the size
- If no font-size is defined for p elements but body has a font-size defined of 18pt, use that
- If no font-size defined for body, font-size for p is medium
which gets rendered by the browser as 12pt
- If body defines the font-size relative to the font in use, say 1.5ex, the absolute size is computed
and that is the size inherited by the element p