em units for font sizesCSS
The objective of this technique is to specify text font size in em units so that user agents can scale content effectively. Since the em is a property of the font, it scales as the font changes size. If a font-size is specified for the body element, all other elements inherit that value, unless overridden by a more specific selector.
em font sizes in CSSThis example defines the font size for strong element so that its text will always be larger than the surrounding text, in whatever context it is used. Assuming that headings and paragraphs use different font sizes, the strong words in this example will each be larger than their surrounding text.
<style>
strong {font-size: 1.6em}
</style>
...
<h1>Letting the <strong>user</strong> control text size</h1>
<p>Since only the user can know what size text works for them,
it is <strong>very</strong> important to let them configure the text size.</p>
…