5 HTML Tips I Wish I Knew as a Beginner
Things nobody tells you when you’re just starting out
5 HTML Tips I Wish I Knew as a Beginner
Things nobody tells you when you’re just starting out
When I first started learning HTML, I thought it was just about typing tags and hoping for the best. No tutorials, no bootcamp, just me, a browser, and a lot of trial and error. And honestly? I made every mistake in the book.
If you’re just starting out, here are 5 things I genuinely wish someone had told me earlier.
1. Semantic HTML Actually Matters
When I started I used <div> for everything. Every section, every container, every piece of content — just div after div after div. It worked, but it was wrong.
Semantic HTML means using the right tag for the right content. <header> for your header. <nav> for navigation. <main> for your main content. <footer> for your footer.
Why does it matter? Two reasons. First, Google understands your page better which helps with SEO. Second, screen readers use semantic tags to help visually impaired users navigate your page. It’s a small habit that makes a huge difference.
2. Always Use Alt Text on Images
This one is simple but almost every beginner skips it.
html
<img src="photo.jpg" alt="A developer working on a laptop">
That alt attribute is not optional. If your image fails to load, the alt text shows instead. More importantly, screen readers read it out loud for visually impaired users. And just like semantic HTML, Google reads it too — good alt text improves your SEO.
One line. Always include it.
3. Structure Your Page Before You Style It
This was my biggest mistake early on. I would start writing HTML and immediately jump to CSS trying to make things look good before the structure even made sense.
Write your full HTML structure first. Get all your content in place. Then open your CSS file. Trying to style a messy structure is like trying to paint a house that isn’t built yet — it doesn’t work.
Get the bones right first. Everything else becomes ten times easier.
4. Indentation Is Not Optional
Your browser does not care about indentation. Your code will run either way. But you will care — especially when your file is 200 lines long and something is broken and you cannot figure out where a tag starts and ends.
Good indentation makes your code readable. It makes bugs easier to find. It makes you look like a developer who knows what they are doing. Start the habit early and never drop it.
5. Validate Your HTML
Most beginners never do this and it shows. The W3C has a free HTML validator at validator.w3.org — paste your code in and it tells you exactly what is wrong. Missing closing tags, incorrect nesting, deprecated attributes — it catches everything.
I used to wonder why my pages looked slightly broken in certain browsers. Half the time it was invalid HTML that different browsers were interpreting differently. The validator fixed that instantly.
Run your code through it before you publish anything. It takes 30 seconds and saves hours of debugging.
The Bottom Line
HTML looks simple on the surface and in many ways it is. But the difference between a beginner who just makes things work and a developer who writes clean, professional code is usually these small habits. Semantic tags. Alt text. Clean structure. Proper indentation. Validated code.
Start these habits now and you will never have to unlearn bad ones later. That is the real tip nobody tells you.
메타데이터
- post_id
- fe26dd2a7e54
- slug
- 5-html-tips-i-wish-i-knew-as-a-beginner-fe26dd2a7e54
- url
- https://medium.com/@amanesuzuha006/5-html-tips-i-wish-i-knew-as-a-beginner-fe26dd2a7e54
- canonical_url
- https://medium.com/@amanesuzuha006/5-html-tips-i-wish-i-knew-as-a-beginner-fe26dd2a7e54
- author_url
- https://medium.com/@amanesuzuha006
- status
- ok
- fetched_at
- 2026-06-26 21:52:29