HTML Basics for Beginners: Your First Webpage (HTML Tutorial #1)

Learning to code can feel scary at first — but don’t worry, HTML is one of the easiest languages to start with. It’s like building with Lego blocks 🧱: each piece has a purpose, and when you stack them together, you create a webpage.

This guide is part of our HTML Basics for Beginners series. We’ll take it slow, with clear examples and a fun mini project at the end.

In this tutorial, you’ll:
✅ Write your first HTML file.
✅ Understand the structure of a webpage.
✅ Learn headings, paragraphs, links, and images.
✅ Build a cool mini project: an “About Me” webpage.

Let’s get started! 🚀

Step 1: Setting Up

To follow along with this HTML basics tutorial, all you need is:

  • A text editor (Notepad, VS Code, Sublime — anything works).
  • A browser (Chrome, Firefox, Safari).

That’s it! No complicated installations. Just type → save → open in browser.

👉 Practice: Create a folder called html-tutorials where you’ll save all your files.

Step 2: Create Your First HTML Page

Open your editor, make a new file, and save it as index.html.
Now paste this code:

👉 Double-click the file — your browser will open and show “Hello, World!” 🎉

Live Demo

How it Works

Let’s break it down (this is the heart of HTML Basics for Beginners):

  • <!DOCTYPE html> → tells the browser this is HTML5.
  • <html> → the root; everything lives inside here.
  • <head> → meta info (like the page title).
  • <title> → what shows in the browser tab.
  • <body> → all the visible stuff goes here.
  • <h1> → the biggest heading.
  • <p> → a paragraph of text.

👉 Practice: Change the <h1> text to your name and refresh the browser.

Step 3: Add More Content

Headings and paragraphs make your webpage readable. Try this:

👉 Notice how <h1> is bigger than <h2>. Try using <h3> through <h6> to see how the size changes.

Step 4: Add Links and Images

Web pages shine when you add links and pictures.

  • <a> → creates a link. href is the URL.
  • <img> → adds an image. src is the file location, alt is the description (important for accessibility!).

👉 Practice: Replace the image src with your favorite photo URL.

Step 5: Mini Project — “About Me” Webpage

Time to build something fun! Using what you learned, create a personal profile page.

Here’s a starter code:

👉 Save it as about.html and open it in your browser. Congrats — you built your first mini project! 🚀

Live Demo

Get the Source Code

You can find the complete code for this tutorial on GitHub:
👉 Codeboid/html-series

Wrap-Up

In this HTML basics tutorial for beginners, you learned:

  • The structure of an HTML page.
  • Headings & paragraphs.
  • Links & images.
  • How to build a simple About Me webpage.

Next up → HTML Tutorial #2: Lists and Tables. Perfect for organizing content like hobbies, schedules, or favorite foods.

Stay tuned, and keep practicing! 🌱