![](http://webcf.waybackmachine.org/web/20200821165521im_/https://habrastorage.org/getpro/habr/avatars/ead/6ea/90a/ead6ea90ab6f7e8e332115b0cb525716.jpg)
What is the difference between px, em, rem, %? The answer is here
- Tutorial
Introduction
Beginners in web-development usually use px as the main size unit for HTML elements and text. But this is not entirely correct. There are other useful units for the font-size in CSS. Let's look at the most widely-used ones and find out when and where we can use them.