A relative unit sets a CSS size in relation to another value. Units such as em, rem, and % help text and spacing adapt when users change text size or zoom. section 4.4.1
For text that needs to remain usable when someone enlarges browser or operating-system text, prefer relative units over fixed px values. Let the root font size follow the browser default, size other text relative to it, and use responsive container constraints such as max-width. section 4.4.1
:root { font-size: 100%; } #A
body { font-size: 1rem; } #B
h1 { font-size: 2rem; } #C
This CSS example keeps the root size at the browser default and sizes body text and headings in rem. section 4.4.1

