So I’m a bit new to web dev but I’ve noticed fairly quickly that using px and pt are a really good way to dig yourself a deep hole that you’ll probably have to dig yourself out of with an all-nighter of eventual recode. I started looking around at the web, reading articles, and etc. to see what the actual default font size was for browsers as it was unbeknownst to me. The consensus is that most browsers have a 16px default font size. Some developers seem to redefine this font-size as such then:
This way they can easily just compute rems based on the redefined default size of 10px (16px * .625= 10px). I have a couple questions about this then–
Are there any particular disadvantages to redefining the font-size, in described manner, in relation to < html >?
Why would anyone ever use ems (having to keep track of the font-size of parent elements), if one could just use rems and always reference the root font-size?