Hypothesis: Domain and HTML/CSS

Hi,

I have a hypothesis, tell me if it is right or wrong: “To create free Website. If i make a domain, and have free Webhost, i can then learn coding like HTML and CSS etc. for free. With help of freeCodeCamp.”

Help me simplify and elaborate my stance to this problem.

you should first learn to code, then think about hosting
also free hosting, it can be, depending on what you need to host
free domain name is much less likely

I knew HTML and CSS in the past, i also have/had Electronics background