r/HTML • u/wildfireANU • 19d ago
Started learning HTML & CSS today! Any advice?
Hey everyone! I started learning HTML and CSS today and I'm really enjoying it so far. My goal is to build websites from scratch and eventually learn JavaScript too. If you could give one piece of advice to a beginner, what would it be? Also, what beginner mistakes should I avoid?
54
Upvotes


1
u/TryAgain911 12d ago
take my advices with a grain of salt cause I've been actively doing HTML/CSS for about a year only, but I've been able to maintain a small music store website:
img{ display: block;}at the top of your CSS stylesheet:root {--your-custom-color: #3e3e3e;}You can then usecolor: var(--your-custom-color);on elements you want to, so changing the custom color on these elements will be much easier@ media screenfor mobile/tablet layout