There is quite a difference between learning about web development and actually taking the plunge and coding something yourself. I will never forget the first time I opened my own page in a browser — it was simple, it was bad — and it was the coolest thing I had accomplished in my coding career at that time. This article will save you some time and get you to that moment faster.
What You Need Before You Start
Getting started is way simpler than people actually tell it is, and you don't need a supercomputer or expensive tools. First, go ahead and download VS Code — the gold-standard text editor used by almost every modern developer. Make sure you also have Google Chrome installed — its built-in developer tools are perfect for testing your work.
Once you open VS Code, go to the extensions marketplace and install the Live Server extension. This little tool automatically refreshes your browser every single time you hit save on your code. Finally, create a brand-new folder on your desktop and name it "my-first-website". That's it — stop overcomplicating it. This is all you need to start building.
Start With HTML — The Skeleton
Inside your new folder, create a file named exactly index.html. This file is the foundation of your project — the digital blueprint where your code lives. Every website you'll ever build starts with this exact file.
The first thing you need inside it is the HTML boilerplate — a standard structure that tells the browser how to read your page. Copy this exactly:
<!-- This is the standard HTML boilerplate. Every webpage starts with this. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My First Website</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my very first webpage.</p>
</body>
</html>
Now click the "Go Live" button at the bottom of VS Code to launch your page using Live Server. Seeing your own code render live in a browser for the very first time is an unforgettable moment. I'm sure you can feel it too.
Add CSS — Make it Look Good
Now that you have your skeleton, it's time to dress it up. Create a brand-new file in the same folder named style.css. But first, you need to connect it to your HTML file. Here's how you do that — add this line inside the <head> section of your index.html:
<link rel="stylesheet" href="style.css" />
Once connected, you can start changing the background color, picking a cleaner font, and playing around with text colors. Center your content, make things pop — this is where the fun starts. There is nothing more satisfying than watching your plain text instantly transform into something that actually looks like a website the second you hit save.
And here's the truth — CSS alone is enough to make a complete, beautiful, professional-looking website. Everything you see on the internet that looks polished and clean? That's CSS at work. You don't need anything else to make your site look great. JavaScript comes later — and it has a completely different job.
Add JavaScript — Make it Interactive
CSS makes your site look good. JavaScript makes it do things. Create a new file named script.js in the same folder. To connect it to your HTML, add this line at the very bottom of your <body> tag — not in the head, always at the bottom:
<script src="script.js"></script>
Now add a simple button in your HTML and write this in your script.js file:
// This runs when the button is clicked
function sayHello() {
alert("Hello! My first website is alive!");
}
And in your HTML, add this button inside the body:
<button onclick="sayHello()">Click Me!</button>
Clicking that button and seeing your page react is an amazing feeling — because it means your website is officially alive. Congratulations — your first ever website is live. I know the feeling already. Welcome to a new life, Mr. Developer.
Stop overthinking, stop watching endless tutorials, and just open VS Code right now. Create your index.html, paste the boilerplate, and commit to making a basic webpage live by the time you go to sleep tonight. This tiny, imperfect action is the exact moment your journey shifts from dreaming about coding to actually becoming a developer.