Every website you visit—from personal blogs to global platforms like Google, Amazon, and Wikipedia—starts with one fundamental technology: HTML.
If you've always wanted to learn web development but didn't know where to begin, HTML is the perfect starting point. It's simple to learn, widely used, and forms the foundation of every webpage on the internet.
The best part? You don't need expensive software or years of programming experience. With just a text editor and a web browser, you can build your first website today.
In this guide, you'll learn what HTML is, how it works, and how to create a simple website from scratch using only HTML.
What Is HTML?
HTML stands for HyperText Markup Language.
Despite its name, HTML is not a programming language. Instead, it's a markup language used to structure the content of a webpage.
HTML tells a web browser what each piece of content represents.
For example, HTML can define:
-
Headings
-
Paragraphs
-
Images
-
Links
-
Lists
-
Tables
-
Forms
-
Videos
-
Buttons
-
Sections of a webpage
Think of HTML as the skeleton of a website. It provides the structure that other technologies such as CSS and JavaScript build upon.
What You Need Before You Start
You only need two things:
1. A Text Editor
Examples include:
-
Visual Studio Code (recommended)
-
Notepad (Windows)
-
TextEdit (macOS)
-
Sublime Text
-
Notepad++
2. A Web Browser
Any modern browser works:
-
Google Chrome
-
Mozilla Firefox
-
Microsoft Edge
-
Safari
That's it.
No internet connection is required to build your first HTML page.
Step 1: Create Your Project Folder
Create a folder anywhere on your computer.
Example:
MyFirstWebsite
Inside that folder, create a file called:
index.html
The browser automatically recognizes index.html as the main page of your website.
Step 2: Write Your First HTML Document
Open index.html in your text editor and type the following code:
<!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>Welcome to My First Website</h1>
<p>
I built this website using only HTML.
</p>
</body>
</html>
Save the file.
Now double-click index.html.
Congratulations!
You've built your very first webpage.
Understanding the HTML Structure
Let's break down each part.
<!DOCTYPE html>
This tells the browser that the document uses HTML5.
<html>
Everything on the webpage is contained inside the HTML element.
<html>
...
</html>
<head>
The head contains information about the webpage that visitors usually don't see directly.
Examples include:
-
Page title
-
Character encoding
-
Meta tags
-
Links to CSS files
<title>
<title>My First Website</title>
This text appears on the browser tab.
<body>
Everything inside the body appears on the webpage.
<body>
Content goes here.
</body>
Step 3: Add More Content
Let's improve the webpage.
Replace the body with:
<body>
<h1>Welcome to My Website</h1>
<h2>About Me</h2>
<p>
Hello! My name is John.
I'm learning web development.
</p>
<h2>My Goals</h2>
<ul>
<li>Learn HTML</li>
<li>Learn CSS</li>
<li>Learn JavaScript</li>
<li>Become a Web Developer</li>
</ul>
</body>
Your website now contains:
-
Headings
-
Paragraphs
-
Lists
Step 4: Add an Image
Create an images folder.
Place a picture inside.
Example:
images/profile.jpg
Then add:
<img src="images/profile.jpg" alt="Profile Picture">
The browser displays the image.
Always include the alt attribute because it improves accessibility and helps search engines understand your content.
Step 5: Add Links
Links allow visitors to navigate to other websites.
Example:
<a href="https://flowisetech.com">
Visit FlowiseTech
</a>
To open in a new tab:
<a href="https://flowisetech.com" target="_blank">
Visit FlowiseTech
</a>
Step 6: Add Another Page
Create another file.
about.html
Now connect the pages.
On your homepage:
<a href="about.html">
About Me
</a>
Inside about.html:
<a href="index.html">
Go Home
</a>
Congratulations.
You now have a multi-page website.
Step 7: Add a Contact Section
<h2>Contact Me</h2>
<p>Email: your@email.com</p>
<p>Phone: +234 XXX XXX XXXX</p>
Later, you'll learn how to create proper contact forms.
Step 8: Organize Your Files
A professional folder structure looks like this:
MyFirstWebsite/
│── index.html
│── about.html
│── contact.html
├── images/
│ profile.jpg
│ banner.jpg
├── css/
├── js/
Keeping files organized becomes increasingly important as your website grows.
Common HTML Tags Every Beginner Should Learn
| Tag | Purpose |
|---|---|
<h1>–<h6> |
Headings |
<p> |
Paragraph |
<a> |
Link |
<img> |
Image |
<ul> |
Unordered List |
<ol> |
Ordered List |
<li> |
List Item |
<div> |
Section |
<span> |
Inline Text |
<table> |
Table |
<form> |
Form |
<input> |
Input Field |
<button> |
Button |
Learning these tags gives you a strong foundation for building webpages.
Beginner Mistakes to Avoid
Many beginners encounter similar issues when learning HTML. Avoid these common mistakes:
-
Forgetting to close tags.
-
Saving the file as
.txtinstead of.html. -
Using incorrect image paths.
-
Nesting elements improperly.
-
Skipping the
altattribute for images. -
Not testing the webpage in multiple browsers.
Taking time to review your code carefully will save you hours of debugging.
What HTML Cannot Do
HTML is excellent for structuring content, but it has limitations.
HTML alone cannot:
-
Style a webpage.
-
Add animations.
-
Process user input.
-
Connect to a database.
-
Build interactive applications.
For these capabilities, you'll need additional technologies.
What to Learn Next
Once you're comfortable with HTML, continue your learning journey with:
-
CSS – Style your website with colors, layouts, fonts, and responsive designs.
-
JavaScript – Add interactivity such as menus, sliders, and dynamic content.
-
Git & GitHub – Track changes and share your projects.
-
Responsive Design – Ensure your website works well on phones, tablets, and desktops.
-
Web Hosting – Learn how to publish your website online for the world to see.
Mastering these skills will prepare you to build modern, professional websites.
Final Thoughts
Every experienced web developer started with a single HTML file. Don't worry if your first website looks simple. What matters is that you're building the foundation of a valuable skill.
As you continue practicing, you'll become more comfortable with HTML's structure, learn how to organize content effectively, and gain the confidence to tackle CSS, JavaScript, and more advanced web development concepts.
Remember, great websites aren't built in a day—they're built one line of code at a time. Open your text editor, write your first HTML document, and keep experimenting. Every page you create brings you one step closer to becoming a skilled web developer.
Frequently Asked Questions (FAQ)
Is HTML enough to build a website?
Yes. HTML is enough to create a basic website with text, images, links, and multiple pages. However, for styling and interactivity, you'll eventually need CSS and JavaScript.
Do I need to install software to learn HTML?
No. You only need a text editor and a web browser. Many developers use Visual Studio Code because it offers helpful features like syntax highlighting and code suggestions.
How long does it take to learn HTML?
Most beginners can understand the basics of HTML within a few days of consistent practice. Becoming confident with semantic HTML and best practices may take a few weeks.
What should I learn after HTML?
The natural next step is CSS for styling, followed by JavaScript for interactivity. After mastering these, you can explore frameworks like React or Next.js and learn about web hosting, databases, and backend development.