I.. Don't actually know, I've just cobbled together information over the years. My dad worked in an electronics workshop but never taught me anything. There's a good intro to electronics course on udemy and if you're serious about it, try get the book The Art of Electronics, its like an electronics bible.
This all seems really complicated but at the same time super interesting. Thanks for the recommendation.