As a person who learned HTML and CSS alone, I can say that there’s no “best way”to learn anything in general. The way I did it was spend 4 to 6 hours every day after school, writing down everything from W3Schools on a notebook, to understand better how to write code in HTML, then building websites on my own. For me, that worked, but for others may be horrible. Don’t spend time thinking about how you should write code, or what programming languages should you learn and why. Think of a purpose. Why do you want to learn JavaScript after HTML and CSS? Why do you even want to learn HTML and CSS? Do you want to become a web developer? Do you want to spend time building the way websites look, or do you want to spend time working on the back end, what makes a website really work? If you don’t know what to learn yet, and how, W3Schools and Codecademy may be a good start to learn how to code, but before even starting, set a challenge for yourself. Let’s say you search for a nice website on the Internet, and you find a nice design. While learning HTML and CSS, try to replicate that design from nothing, using what you learn. See if you like working with HTML and CSS. Maybe you want to design websites, only using Photoshop and you don’t know it yet, so start designing that website using Photoshop before even starting with HTML and CSS. If you don’t know what you want to learn yet, and how to do it, the best way to start is by working on a project while learning. Take a few pictures of the website you want to build, or download the design, and start building it by pieces. When you get to the basic stricture of the HTML page on W3School or Codecademy, write that code for your website, start with the <html> tag, then with the <head> tag, then with <title>, with <body>, etc. Build a few websites while learning and you’ll learn how to build anything really fast. Same thing applies to JavaScript. Don’t just learn JavaScript, it may be horrible if you have zero experience with coding. At first, it will be easy. Variable, simple functions, if and else statements, etc, but then you’ll get to harder things, and if you don’t have a purpose, you may be disappointed and give up pretty fast. After you’re good enough with HTML and CSS, think of an application you want to build, and start learning JavaScript while also building that application slowly.
|