Skip to main content

What is HTML? A Beginner’s Guide with Simple Examples

 

Websites are in my simple terms document files sitting up there on a server. With this simple illutration web design and development will be simple. Now what the hell is HTML? HTML - Hypertext Markup Language is the structure of the web,  like in building a real house you structure it first with blocks or wood. Thats while a website job is also called a project. 

If you’ve ever wondered how websites are made, the answer always starts with HTML. Every page you see on the internet, from blogs to social media platforms, uses HTML as its foundation.

In this guide, we’ll explore HTML in a way that’s easy to understand, with practical examples you can try yourself — even if you’ve never written a line of code before.


Understanding HTML

HTML stands for HyperText Markup Language. Let’s break that down:

  • HyperText → Text with clickable links that take you to other pages

  • Markup → Special instructions (called tags) that tell the browser how to display content

  • Language → A way to communicate with web browsers

In simple terms:

HTML is the skeleton of your website. It tells the browser what each part of your page is — headings, paragraphs, images, and links.

Think of HTML like building a house:

  • HTML = the walls and structure

  • CSS = the paint, furniture, and style

  • JavaScript = electricity, plumbing, and interactive features

Without HTML, your website wouldn’t exist. It’s the first step in creating anything online.


The Basic Structure of an HTML Page

Every HTML page follows a similar structure. Here’s a simple example:

<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>

<h1>Hello World!</h1>
<p>Welcome to my very first website.</p>

</body>
</html>


What’s happening here?

  1. <!DOCTYPE html> – tells the browser this is an HTML5 page.

  2. <html> – the root element containing the entire page.

  3. <head> – contains meta information like the page title.

  4. <title> – the text that appears in the browser tab.

  5. <body> – all visible content goes here (headings, paragraphs, images, etc.).


Understanding HTML Tags

HTML uses tags to define elements. Tags usually come in pairs:

<p>This is a paragraph.</p>
  • <p> → opening tag

  • </p> → closing tag

  • The content goes in between

Some tags, like <img>, don’t need a closing tag.


Common HTML Tags You’ll Use

1. Headings

<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Smaller Heading</h3>
  • There are six levels: <h1> to <h6>

  • <h1> is the largest, <h6> is the smallest

2. Paragraphs

<p>This is a simple paragraph of text.</p>

3. Links

<a href="https://google.com" target="_blank">Visit Google</a>
  • href specifies the link destination

  • target="_blank" opens the link in a new tab

4. Images

<img src="image.jpg" alt="Description of Image">
  • src = path to your image

  • alt = text description (important for accessibility)

5. Lists

Unordered list (bullets):

<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>

Ordered list (numbers):

<ol>
<li>Step One</li>
<li>Step Two</li>
</ol>

Build Your First Simple Page

Real coding skills starts by building something really special.

Let’s create a practical example.

  1. Choose your code editor like VScode, Sublime text or Atom - This code editors helps dictect wrong syntaxs with its syntax highlighting and helps you code faster with its auto-complete feautures. Also make it eaiser to install some extensions - like Live Server so you don't have to refresh you browser each time you update and save your code.

  2. Save the file as index.html.

  3. Copy this code:

<!DOCTYPE html>
<html>
<head>
<title>My First Website</title>
</head>
<body>

<h1>Welcome to My Website</h1>

<p>This is my first web design project. I’m learning HTML step by step!</p>

<h2>About Me</h2>
<p>I love learning web development and sharing what I know.</p>

<h2>My Skills</h2>
<ul>
<li>HTML</li>
<li>CSS (coming soon)</li>
<li>JavaScript (coming later)</li>
</ul>

<a href="https://google.com" target="_blank">Search Google</a>

</body>
</html>
  1. Open the file in your browser. 


Here Are Common Beginner Mistakes To Advoid

  • Forgetting closing tags

    <p>Hello</p> <!-- Correct -->
          <p>Hello <!-- Wrong -->

Although some tags are self closing - you dont need to close them. But we come to that latter in this toturial.
  • Wrong file extension

            Always use .html, not .txt. Example index.html, or mywebsite.html - index.html is prefered.

  • Improper nesting of tags

    <p><b>Bold Text</b></p> <!-- Correct -->
           <p><b>Bold Text</p></b> <!-- Wrong -->

Practice Exercises

Try these to reinforce your skills:

  1. Create a page with your name as a heading and a paragraph about yourself.

  2. Add a list of your favorite websites.

  3. Insert an image with a proper alt description.

  4. Add a link to a site you visit often.


What’s Next?

After mastering HTML, the next steps are:

  1. CSS – to make your site look visually appealing.

  2. Responsive Design – so it looks good on mobile devices.

  3. JavaScript – to add interactivity.


Summary

  • HTML is the foundation of every website.

  • It uses tags to structure content.

  • Start simple: headings, paragraphs, lists, images, and links.

  • Practice, experiment, and build small projects.


Comments

Popular posts from this blog

MiniPay: The Future of Fast, Low-Cost Digital Payments in Africa

  MiniPay: The Future of Fast, Low-Cost Digital Payments in Africa Introduction In today’s fast-paced digital world, sending and receiving money should be simple, fast, and affordable. Unfortunately, many traditional banking systems still come with high fees, delays, and limitations—especially for cross-border transactions. This is where MiniPay comes in. Designed by Opera , MiniPay is transforming the way people in Africa and beyond handle money by offering a seamless, low-cost digital payment experience. In this article, we’ll explore what MiniPay is, how it works, its key features, benefits, and why it’s becoming one of the most talked-about financial apps in Nigeria and across Africa.   What is MiniPay? MiniPay is a mobile digital wallet that enables users to send, receive, and store money easily using their smartphones. Unlike traditional banking apps, MiniPay is built on blockchain technology, making transactions faster and significantly cheaper. Personally...

How to Create a Folder: A Complete Step-by-Step Guide for Beginners

  How to Create a Folder: A Complete Step-by-Step Guide for Beginners Introduction In today’s digital world, organization is everything. Whether you are using a computer, smartphone, or cloud storage, knowing how to create a folder is one of the most basic yet essential skills you need. Folders help you organize files, documents, photos, and applications in a structured way, making it easier to find and manage your data. If you’ve ever struggled to locate an important document or ended up with a cluttered desktop, learning how to properly create and manage folders will transform your workflow. This comprehensive guide will walk you through everything you need to know about creating folders across different devices and operating systems. By the end of this article, you will not only understand how to create a folder but also how to organize, name, and manage folders efficiently for better productivity. What Is a Folder? A folder is a virtual container used to store files and other f...

How to use Canva to Design (Beginners Level)

  How to use Canva to Design (Beginners Level) Canva is an easy-to-use online design tool that helps you create graphics, documents, and visual content without needing advanced design skills. And it also saves your work automatically even when you forget. You know we all forget.   The interface of Canva can be a bit tricky to use as a beginner. But a great fun to when you try it having a basic understanding first. So, allow me to take you on a tour. First sign up on the app using your Gmail Account or any other way suitable for you. The you will be greeted with a purple and white elegant design. At the very left panel you will see the Create button with the + sign. Click on it and on the left panel scroll down to the Custom size. Choose your custom size leave it in the px unit. For this example, I am using the width of 1200 and the height 400 in px.   You get the view; We are creating a design for web banner of course you can create whatever but follow...