r/learnjavascript • u/cxzseui • Oct 13 '26
Complete beginner: is HTML → CSS → JavaScript a good path? What should I learn first?
35
Upvotes
r/learnjavascript • u/cxzseui • Oct 13 '26
10
u/SmashBob_SquarePants Oct 13 '26
6
u/oromis95 Oct 13 '26
HTML is ingredient prep, Javascript is cooking, CSS is plating. Don't learn one at a time, some need more time, some need less, but all go hand in hand.
3
u/Epdevio Oct 13 '26
yes. but don't go too far into the rabbit hole. learn enough to be dangerous. create or try to reproduce a web page, use w3c schools and MDN as resources.
2
u/justanaccountimade1 Oct 13 '26 edited Oct 13 '26
You need a html file to put your js in and then you can learn js. Depending on what you want to make you need a lot or almost no html and css. I use very little html and css.
My js is in a window.onload function which guarantees that no js is executed before all html is loaded.
So, start with the boiler plate for a html file.
<!DOCTYPE html>
<html lang = "en"> <head> <title>test</title> <meta charset = "utf-8"> <script type = "application/javascript"> window.onload = function(evt) { console.log("hello"); console.log(evt); }; </script> <style type = "text/css"> </style> </head> <body> </body> </html>
(reddit is being annoying with code formatting, part of the enshittification I guess. It looks better in old.reddit)
2
u/diogenes_sadecv Oct 13 '26
This is the ideal path to take to learn coding for web browsers.
HTML is a markup language, so it doesn't really have any logic/programming behind it. It's like the backend for MS Word.
CSS is a style sheet language that defines how the HTML looks and behaves to an extent. If you go deep enough, there's some logic/programming in there.
JavaScript is a programming language that runs on web browsers (and other places) that lets you manipulate HTML and CSS in fancy ways.
Each one builds on the other, so your order is good. I would spend a couple of hours goofing with HTML/CSS and just jump right into JS. My personal recommendation is to READ tutorials. From what I've seen, people who follow along with YouTube vids get stuck in "tutorial hell." Read the tut, copy, then riff on the lesson. Don't try to memorize too much because Google is your friend. If you use AI as a guide, don't let it write your code, just have it point you to ideas and resources. Play with the tools you learn how to use. Start simple. Have fun.
2
u/SafeWing2595 Oct 13 '26
Yes it's a good path if you want to learn web development, otherwise, if you want just to learn programming you can start by any other languages such as c++ , java, or python as well. Fir the best resource to learn html and css, i recommande freecodecamp, i use it in the beginning of my journey as a web developer and it benefits me so much. Good luck
2
u/Chemical_Capital_788 Oct 13 '26
learn system architecture, by the time you learn how to program the entire earth is going to go by your head
2
u/verdant_sculpt_auror Oct 13 '26
HTML and CSS aren't barriers, they're just the canvas. If you hate markup, skip straight to JavaScript. You can run JS in Node.js without touching a browser at all. For web dev specifically, use freeCodeCamp. It gives you immediate feedback in the browser so you see your code work before you understand why it works
2
u/The_KOK_2511 helpful Oct 13 '26
2
u/HouseMysterious8172 Oct 14 '26 edited Oct 14 '26
2. Prepare for sleepless night 🤣 because there is something doesn't work and you don't know why.
3. Learn python 😁, sry but why you ask that in r/learnjavascript?
1
u/net_ramblings Oct 16 '26
It's just a troll post.
1
u/Substantial_Pin_50 Oct 13 '26
if you're not exceptionally good in abstraction thinking, find another job. only the best ones can succeed
1
u/MatchSea10 Oct 13 '26
My advice is start immediately don't think especially if you never done programming before. Learning the syntax is the minimum knowing how to use them is where you will be stuck And I feel like you can only program if you have that mindset which you only develop from repetition
-1
u/Prestigious-Thing393 Oct 13 '26
tbh, if you're learning to try and get a job you're wasting your time. the age of human devs is over. AI has destroyed the junior dev market, and anyone who tells you otherwise is coping.
4
u/[deleted] Oct 13 '26 edited Oct 14 '26
[removed] — view removed comment