McTaba Labs logo
Software EngineeringThe WhiteboardProjectsEventsMasterclassesWebinarsLearn
Book Call

500+ developers already in the community

Get answers, find accountability partners, and stay ahead

Join Discord →
McTaba Labs logo

Educating 1 million students in tech by 2030.

Programs

  • HighSchool Graduates Launchpad
  • AI & Business Automation
  • Corporate Training
  • McTaba Story & Mission
  • Full-Stack Curriculum
  • Course Pricing & Plans
  • Frequently Asked Questions

Resources

  • Join Discord Community
  • Tech Events in Nairobi
  • Masterclasses
  • Free Resources
  • Learn
  • Campus
  • Africa Tech Talent Report
  • Partner With Us
  • Start a Project
  • Our Work

Contact Us

  • 124 Manyani East Road, Lavington, Nairobi
  • +254727795603
  • Book a Discovery Call

Office Hours:

Mon-Fri: 9am - 2pm EAT

Sat: 10am - 12pm EAT

© 2027 McTaba Labs - A product of Edtech Industries. All rights reserved.

Privacy PolicyTerms of ServiceRefund Policy
  1. Learn
  2. Learning to Code
  3. Building Your First Website: A Weekend Project for Total Beginners
Bonaventure OgetoBy Bonaventure Ogeto|Updated July 20, 2026

Building Your First Website: A Weekend Project for Total Beginners

To build your first website in a weekend, install VS Code (free), create an HTML file, add content with HTML tags, style it with CSS, and open it in your browser. Day one covers structure (HTML) and appearance (CSS). Day two covers a contact section, mobile responsiveness, and publishing it for free on GitHub Pages or Netlify. No prior coding experience is required. The result is a real website with a real URL that anyone in the world can visit.

In this article

  1. 1. Before You Start: What You Need
  2. 2. Saturday Morning: Your First HTML Page
  3. 3. Saturday Afternoon: Making It Look Good With CSS
  4. 4. Sunday Morning: Mobile and Contact
  5. 5. Sunday Afternoon: Publishing It to the World
  6. 6. What Comes Next

Before You Start: What You Need

A laptop or desktop computer. Windows, Mac, or Linux. Any of them work.

A web browser. Chrome is ideal because its developer tools are the best. Firefox works too.

VS Code. Download it for free from code.visualstudio.com. Install it. This is where you will write your code.

That is it. No paid software, no special hardware, no sign-ups. You are ready.

Saturday Morning: Your First HTML Page

Open VS Code. Create a new file. Save it as index.html on your desktop.

Type this:

<!DOCTYPE html>
<html>
<head>
  <title>My First Website</title>
</head>
<body>
  <h1>Hello, I built this.</h1>
  <p>This is my first website. I made it myself.</p>
</body>
</html>

Save the file. Find it on your desktop. Double-click it. Your browser opens and you see your heading and paragraph. You just built a web page.

Now add more content. A section about yourself. A list of things you are interested in. An image (save any image to the same folder and reference it with an <img> tag). Each time you save the file and refresh the browser, you see your changes. That instant feedback is what makes web development addictive.

Spend the morning adding content. Do not worry about making it look good yet. Focus on structure: headings (<h1> to <h6>), paragraphs (<p>), lists (<ul> and <li>), links (<a>), and images (<img>).

Get weekly developer tips

Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.

No spam. Unsubscribe anytime.

Saturday Afternoon: Making It Look Good With CSS

Your page has content but it looks like a document from 1995. Time to add style.

Create a new file in the same folder called style.css. In your HTML file, add this line inside the <head> section:

<link rel="stylesheet" href="style.css">

Now open style.css and start styling. Change the font. Set a background colour. Add padding around your content. Centre your text. Make your headings a different colour.

Start with these basics and experiment from there. Change a value, save, refresh. Change another value, save, refresh. CSS is visual. You see every change immediately. Play with it. Break things. Fix them. That is how you learn.

By Saturday evening, you should have a page with real content, readable fonts, decent colours, and some layout structure. It will not look like a professional website yet. That is fine. It is day one.

Sunday Morning: Mobile and Contact

Pull out your phone. Open the same HTML file (or use Chrome's device toolbar by pressing F12 and clicking the phone icon). Your site probably looks terrible on a small screen. Text runs off the edge. Images are too wide.

Fix this by adding one line in your HTML <head>:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Then in your CSS, use percentage widths instead of fixed pixel widths. Set images to max-width: 100%. Use media queries to change font sizes or layout on small screens. This is responsive design, and it is essential in Kenya where most people browse on phones.

Add a contact section. A simple form with fields for name, email, and message. It will not actually send emails yet (that requires a backend or a service like Formspree), but the form is there and it looks professional.

Sunday Afternoon: Publishing It to the World

Right now your website lives on your computer. Time to put it on the internet.

Option 1: GitHub Pages. Create a free GitHub account. Create a new repository. Upload your HTML and CSS files. Go to Settings, Pages, and select your branch. GitHub gives you a free URL. Your site is now live.

Option 2: Netlify. Create a free Netlify account. Drag and drop your project folder onto the Netlify dashboard. Done. You get a free URL with HTTPS.

Both options are free, require no credit card, and give you a real URL you can share with anyone. Send the link to a friend. Post it on Twitter. Show your parents. You built this. It is on the internet. Anyone with the link can see it.

This is your first published project. It is simple, and that is perfectly fine. Every developer's first website was simple. What matters is that it exists, it is live, and you built it yourself.

What Comes Next

You have proved to yourself that you can build for the web. That is the most important outcome of this weekend. Not the website. The proof.

Next steps: learn more CSS (Flexbox and Grid for layout), start JavaScript (make your page interactive), and build a second project for someone else (a friend's small business, a church, a local shop). Each project teaches you more than the last.

If you want a structured path from here, McTaba's Tech Foundations course on McTaba Academy (KES 2,999) picks up exactly where this weekend project leaves off. Or start the 26-week marathon if you are ready for a full commitment to becoming a developer.

Whatever you choose, do not let this weekend be the last time you write code. Build something next weekend too. And the weekend after that. The compound effect of consistent practice is how beginners become professionals.

Key Takeaways

  • ✓You can build and publish a real website in one weekend with zero prior experience.
  • ✓All you need is a laptop with a browser and a free text editor like VS Code.
  • ✓Day one: learn enough HTML to structure a page and enough CSS to make it look presentable.
  • ✓Day two: add a contact section, make it work on phones, and publish it for free.
  • ✓A published website, even a simple one, is more impressive than any tutorial completion certificate.

Frequently Asked Questions

Do I really need just one weekend?
For a simple personal website, yes. It will not win design awards, but it will be a real, published website. If you spend Saturday and Sunday focused, 4 to 6 hours each day, you will have something live by Sunday evening.
Can I do this on a phone instead of a laptop?
Technically yes, using apps like Dcoder or browser-based editors like CodePen. But it is much harder and slower. A laptop with a proper text editor and browser is the right tool for web development. If you do not have one yet, save up for a second-hand one before starting seriously.
Is the website I build this weekend good enough for a portfolio?
It is a start. Your first project is rarely your best, but it proves you can build and ship. As you learn more, you will rebuild it better. Many professional developers keep their first website as a reminder of how far they have come.

Go Full-Stack

KES 120,000

The complete Full-Stack Software & AI Engineering course. From zero code to AI-powered products in 16 weeks. 16 modules, 208 lessons, with career support until placement.

Enrol in Full-Stack AI

Not ready? Create Free Account

Keep reading

Web Development in Kenya: Skills, Tools and First Projects

Web development is the most accessible entry point into tech for Kenyan beginners. The tools are free, the demand is high, and you can see results in a browser within your first week. Here is what to learn, in what order, and what to build first.

Read more

How to Set Up Your Coding Environment as a Beginner in Kenya (Step-by-Step)

Everything you need to install and configure before writing your first line of code. VS Code, Git, Node.js, Python, and terminal basics, with Kenya-specific tips for slow connections and offline installers.

Read more

Best First Programming Language to Learn in 2027

JavaScript or Python? TypeScript or Go? The best first programming language depends on what you want to build. An honest comparison with clear recommendations based on your goals.

Read more

Explore related topics

Breaking Into Tech

Practical, no-nonsense guides for anyone looking to start or change their career in tech. From choosing your first language to acing interviews.

AI Skills & Tools

Practical AI knowledge for developers. Build your first agent, get good at RAG, and pick the right AI coding tools for real work.

Reviews & Comparisons

Honest reviews and head-to-head comparisons to help you choose the right learning path.

Bonaventure Ogeto

Bonaventure Ogeto

Founder, McTaba Labs

Bonaventure is the founder of McTaba Labs, a coding bootcamp in Nairobi, Kenya. He has spent years building products for the African market and mentoring the next generation of developers across the continent.