Some real basic questions here

I get that to have my website hosted, i know that I need a domain, and i know that places like wordpress exist, but what do I need if I want to make a website from absolute scratch, and how do I get that code on to that specific website without using something like wordpress?

you would need a web hosting service, there are quite a lot of them, both paid and free. The upload depends, some use (s)ftp, others support git.

alternatively, you could use a VPS, which usually gives you Linux (lots of servers, particular web, run Linux) and set up your own server there. Gives a lot more freedom, but is more work to install everything and to get everything right

yes, I just found this answer on my own before seeing your reply, thank you!