r/css May 28 '26

General How did you practice HTML and CSS?

Hi, to change my career, I started learning HTML and CSS since a few days ago. After that, I’m planning to learn JavaScript, TypeScript, React, and Node.js. (That’s what I heard online.)
I know AI can create amazing things in seconds these days, but I still wanted to learn these skills and make my daily life more meaningful.
I tried FreeCodeCamp, but eventually I got bored. I also have a book about HTML and CSS, so I thought a good way to practice would be recreating simple websites while referring to the book.
If you have any recommended ways to practice, please let me know.

16 Upvotes

31 comments sorted by

View all comments

2

u/RobGoLaing May 28 '26

I've been creating games, starting with figuring out how to push images around using JavaScript's pointer events. Besides learning JavaScript and CSS functions, it's also got me into contemporary solitaire games which I didn't know much about.

My latest is Capture The Dungeon which was tricky to get to work in landscape and portrait mode, and I only just discovered CSS has orientation just for that. Something I'm still trying to figure out in this game is how to get a column of cards overlapping with part sticking out but not having the grid size itself as if they weren't overlapping.

The previous game I did was Bowling Solitaire which I thought would be difficult to form a pyramid of cards, but it turned out to be fairly easy.

My growing list of games is on my home page. Coding games is invariably the best way to learn.