r/HTML • • Oct 15 '26

Question What is the best way of learning html?

So I have quite a story:

I found out that Ai could do code, I wanted to try it and I wanted to make my own game, then after 3 days (so today) I grew tired of it making the same mistakes, so I want to learn this so I can fix and hopefully continue this project myself.

It's a card game based on countries, I has a lot of complex meccanics but I want to fix it and continue to add stuff

13 Upvotes

28 comments sorted by

2

u/mister-sushi Oct 15 '26

The best way to learn any language is to solve your own problems with it.

0

u/ivanexpert Oct 15 '26

What do you mean?

3

u/supervicenza Oct 15 '26

Bro doesn't remember

10

u/rupertavery64 Oct 15 '26

Throw away the code and start from the basics. There are no shortcuts to learning. If it's a game, you should start learning javascript or python.

HTML is for making user interfaces. You can make the game field and maybe assets but to make it interactive you will need Javascript.

If you try to mix everything at once, it may slow you down especially if you have no experience.

4

u/HENH0USE Oct 15 '26

Watch some YouTube tutorials and understand these, build a simple static website. Then move on to css.

· Document structure: <!DOCTYPE html>, <html>, <head>, <body>, <title>, <meta>

· Text: <h1>–<h6>, <p>, <a>, <strong>, <em>

· Lists: <ul>, <ol>, <li>

· Media: <img>, <audio>, <video>

· Structure: <header>, <nav>, <main>, <section>, <article>, <footer>

· Forms: <form>, <input>, <label>, <textarea>, <select>, <button>

· Attributes: id, class, href, src, alt

1

u/phKoon Oct 15 '26

I'm curious: why did you choose HTML for game development?

1

u/ivanexpert Oct 15 '26

I wanted the ai to create a game i could play on the wii u, it told me the only way was html and that was that, im trying to learn now and im re doing the game in java script

2

u/KaedenCraft Oct 16 '26

To be clear, the Wii U can only play HTML/JS based games through the browser, not natively. I'm not entirely sure if this was clear from your response here. Conversely, there are many people getting into coding now that it's "easier than ever" with AI, but since they don't understand what any of the code actually means, the only way to "fix" it is to ask AI to do it again. Costs tokens and often has unintended consequences as AI loves to just randomly change things you didn't ask it to change, etc.

Having this ability to actually look at code and comprehend what's happening - even if you primarily use AI for the coding itself - is an invaluable skill.

As an aside aside, HTML is a structure definition, not "coding" per se. HTML is used for organizing data, not for actually incorporating game logic. If you already knew that, my apologies. :)

1

u/ivanexpert Oct 16 '26

Yeah, i wanted to run it on wiiu's browser

1

u/l008com Oct 15 '26

The title of this post and the body of this post don't seem to be about the same thing?

1

u/ivanexpert Oct 16 '26

Sorry, what i meant was i wanted to learn html to redo this game

1

u/l008com Oct 16 '26

So when you say HTML, you mean HTML, CSS and Javascript?

1

u/ivanexpert Oct 16 '26

Yeah, it is still pretry confusing to me

3

u/silenziosa Oct 15 '26

I’ve been loving freecodecamp

2

u/Longjumping_Put_7212 Oct 18 '26

I recommend W3Schools; it is free, and you could learn a lot there. Plus, there are tons of game development resources out there for teaching game development.

1

u/zaramysh Oct 18 '26

w3schools is my goat fr

1

u/jnsy617 Oct 15 '26

Check out Codecademy.com (free for the first few lessons), freecodecamp.com (free obviously), and Scrimba.com (basic courses are free). I’ve used all of the as support in college level classes and they are helpful. There is also W3schools.com, which is free but not as structured as the others. Good luck!

1

u/rmunky1 Oct 16 '26

Mozilla Sea Monkey composer

1

u/Kafei- Oct 16 '26

I recommend the W3schools website and I would've recommended DRAAC, but he went offline. There's plenty of tutorial websites, but I learned a lot from this one in particular. It has a Try-it Editor, so you can try the code in real time.

1

u/TheRNGuy Oct 16 '26

It's very easy, you can learn in 1–2 days from MDN.

Though you should learn it together with css, because it's never used without it, and css will affect how you write html.

Aldo learn anti-patterns, like divitis (many React sites have it)

1

u/cyberpothead Oct 16 '26 edited Oct 16 '26

I think we're on the same path here, my reason for learning started with AI making mistakes because I want to create a web app game. Its my day 17 today. I learned HTML and CSS for 2 weeks and just started JavaScript recently, its very different from html and css. I use ChatGPT and structure and tailor my course to fit my endgoal, it use javascript.info, mdn, web.dev and theodinproject.com and then tell chatgpt to use these sites for reference and tutor me. Its been great so far, no problems. If you want u can hangout with us on the discord sever, web dev & design.

And also, HTML - Structure of the website, texts, buttons, media (images, audio, video), input fields etc. The actual content. CSS - Visual styling, appearance, simple animations, makes sites responsive(meaning it adaps to different screen sizes). Designs and styles the website. JavaScript - interactivity, makes the website think adds logic, the ability to decide, calculate etc. Makes the website function. You can also add more complex animations.

JS will be useful for the actual game while, html and css can also be useful for the UI and web app games.

These 3 works together to create a website too.

For your goal. JavaScript - game engine and logic/brain Css / html - UI

Try creating a simple game with these 3 to better understand its scope. Use AI for guidance or tutoring.

Also, you can explore game engines for game dev, but for your goal, a card based game. Html+css+js seem to work best.

1

u/Weird-Dealer8488 Oct 17 '26

O primeiro passo é identificar em qual linguagem o jogo foi desenvolvido, pois isso define o que estudar. Se for um jogo de navegador, provavelmente usa HTML, CSS e JavaScript. Para implementar mecânicas de cartas, é importante entender lógica de programação, especialmente variáveis, condições, funções, arrays, objetos e eventos, que permitem controlar o estado do jogo e validar as jogadas.

Enquanto aprende, peça à IA para explicar o código antes de alterá-lo e faça mudanças pequenas, uma mecânica por vez. Ao encontrar erros, descreva o comportamento esperado e o que realmente acontece. Também vale aprender o básico de Git para salvar versões e recuperar o código caso alguma alteração quebre o projeto.

Para começar pela parte visual, a Hashtag Treinamentos disponibiliza uma playlist gratuita de HTML e CSS no YouTube. Depois, avance para JavaScript, que será essencial para desenvolver as regras e mecânicas do jogo.

1

u/XxDETxX Oct 27 '26

I learned the basics of HTML by making a shitty little website with Neocities. They have a tutorial on the basics and it turned out to be pretty simple, everything the tutorial didn't cover was searchable on the Internet pretty easily since html is ancient

2

u/[deleted] Oct 16 '26

[removed] — view removed comment

2

u/ivanexpert Oct 16 '26

Im trying to learn more Javascript than html rigjt now, so far i did the arena and the first card, pretty good if u ask me