Beginner question- font limitations

I am a graphic designer veering off into the world of UX design. Currently, I´m just beginner learning through courses, so please excuse my lack of knowledge in the field.
My question pertains to the limitation of using only 2 fonts in web…