W3Schools, the largest site for web developers on the market, comes equipped with coding tutorials, quizzes and practice to help those learning to code. Based in New Zealand, Code Avengers offers fun and interactive coding lessons for children aged 5-14; for school teachers who want to teach coding; for people who are coding professionally; and for creators aged 15 and up. No previous experience is necessary to learn with Upskill, a free bootcamp that takes you from beginner to advanced. Through 10,000 simple challenges, it encourages students to learn on their own by carefully reading the instructions and trying out the code on their own.
A former colleague used this site to learn how to build an SMB server while brushing up on his devops skills. This website also has a code editor to test references and see how they look on the user's end. By taking advantage of these resources while learning to code for free, you can find out what you like and don't like before investing money in a particular coding language or set of courses. Students can also learn about WordPress theme development and the React framework with this subscription.
EdX is an open source higher education programme run by MIT and Harvard, making it another high calibre resource where you can learn to code for free online.