r/learnprogramming • u/Birdi_lover • Mar 25 '26
beginner question absolute beginner, should i learn python or html first?
i searched that in social media but i kept getting mixee answers like html not important, learn Javascript first then python and vice versa
edit: I wanna learn language that like can help me make a website
6
Upvotes
12
u/Exotic-Low812 Mar 25 '26
What do you want to make?
9
u/Beregolas Mar 25 '26
I mean... what do you want to do? This is a little like asking whether you should learn how to drive a bus or a train first.
HTML is a markup language. Together with CSS it is used to describe how a website looks. It is NOT a programming language, and cannot be used to implement logic or behaviour (with very minimal exceptions)
JavaScript is a Scripting Language, mainly used on websited. It can be used to implement Client side logic on websites, like popping up a menu when you click a button. It can also be used for other applications.
Python is an interpreted language for the desktop/server. It cannot be used on the web (without making extremely cursed things), and is mainly used for small scale backends, automation and data science.
There is no clearn path / order to them. You should be aware, that they are different tools, mainly suited for different jobs. If you need to build a website, use HTML/CSS/JS. If you want to automate something, use Python. (and so on)
2
u/Kenny-G- Mar 25 '26
I'm confused about what you are asking about? You mention HTML in the title, but Javascript in the text? And what do you want to do when you learn it? Decide first why you want to learn, then find the right tools :)
3
u/RainingTheBEST Mar 25 '26
Yes, you should learn HTML and then focus on JavaScript and CSS, they’re all essential for front end development, assuming that’s what you want to do.
3
u/Ok_Treat3196 Mar 25 '26
If you are asking this question then you really are a beginner. And thats great; i just wish more commenters would pick up on that.
To answer your question python, learn python. It has structure, logic, reasoning, it does stuff. Its valuable. And the principles you learn will help you with other languages.
Html you can learn in a day. It’s more something you pick up while making websites. Mostly it just says this is a heading, this is a paragraph, this is a link. Thats it. Not a lot to learn; it doesn’t even tell the website how to look! (Thats CSS). Or how to move (thats JavaScript).
2
u/vivalapants Mar 25 '26
Python.
2
u/Creepy-Vanilla4552 Mar 25 '26
Si tu veux faire un site web, il va te falloir du front et back-end, je dirais donc JavaScript (il fait les deux) et commence déjà par HTML/CSS, c'est ce que j'ai fait quand j'ai débuté
2
u/obsoleteconsole Mar 26 '26
Definitely python, you won't be able to get a programming job knowing just knowing HTML
1
u/Defection7478 Mar 25 '26
They are all just tools. You have to decide what you want to make first. This is like asking if you should learn the hammer or the soldering iron first
1
u/Js_cpl Mar 25 '26
What do you want to do? Both languages are great but different. Python will run on your pc, js in a browser usually.
1
u/SirMcFish Mar 25 '26
Decide what you want to be creating, then work out what to learn. it's pointless learning HTML & Javascript if you're going to design desktop apps!
1
u/Raman-2122 Mar 25 '26
Do you like backend or front end
1
u/Euphoric-Layer-6436 Mar 25 '26
I would learn learn HTML, Javascript, CSS, Typescript, Node (JS + TS) than Python if needed.
1
u/XXLPenisOwner1443 Mar 25 '26
HTML is not programming, but if you have no mathematics background and aren't used to writing balanced equations, so to speak, it would probably make it easier for you to learn programming in the future if you grasp the syntax of something that isn't exactly English beforehand, like HTML.
HTML also dovetails into Javascript very well, and whatever environment you use to learn HTML will likely also allow you to start tinkering with it as soon as you're ready, and prepare you for one of the easiest ways to output the results of your scripts graphically.
Python has a wider range of uses, but it might be harder to grasp for someone with no background and you could more easily wind up just chasing your own tail.
1
u/aqua_regis Mar 25 '26 edited Mar 25 '26
Replying to your edited post as it completely shifts the goalpost (which the others up to now couldn't see and therefore made different recommendations):
If you want to make a website, you first need to learn the trinity: HTML, CSS, JavaScript - in that order where HTML and CSS are mostly in parallel.
There are no websites without them.
Check out:
And as reference Mozilla Developer Network (MDN)
After at least the HTML, CSS, JS parts, you can decide what back end language you want to learn. There are more than enough choices. JavaScript with Node.js, Python with Flask, Django, FastAPI, Java with Spring, or the classic PHP with Laravel, and so on. There are plenty more choices.
1
u/TripleTen-Team Mar 25 '26
If your goal is to build a website, start with HTML. It is the backbone of every page on the internet and provides the structure for your content. While Python is powerful for data and backend logic, it won't help you visually build a site layout like HTML and CSS will. Starting here allows you to see immediate results in your browser, which helps build momentum. Once you understand how to structure a page, you can move on to JavaScript or Python to add functionality.
1
u/strangenautics Mar 25 '26
You can learn html in like a weekend
1
u/Effective_Promise581 Mar 25 '26
I would learn both. HTML is not complicated. Also add CSS and Javascript once you learn HTML.
1
u/I_Am_Astraeus Mar 26 '26
JavaScript/css/html. You typically learn them all together.
Html sets up your page Css styles the page JavaScript lets you code logic into it.
If you need to go further you can do a whole backend in node.
If you move beyond web or want to move beyond JavaScript, there's a ton of language options for backend work