Skip to main content

Saizul Amin

How to Create a Website Using HTML: A Complete Step-by-Step Guide

📅 30 Mar 2025 🔄 Updated 9 Oct 2026 ⏱ 4 min read
How to Create a Website Using HTML: A Complete Step-by-Step Guide
In this article

     

    Introduction

    Creating a website is an essential skill in today’s digital age, whether you’re looking to build a personal portfolio, a blog, or even a business website. One of the most fundamental and effective ways to do this is by using HTML (Hypertext Markup Language). But how to create a website using HTML? What are the necessary steps, best practices, and tools to ensure your website is both functional and visually appealing? This comprehensive guide will take you through everything you need to know to build a website from scratch using HTML.

    What is HTML?

    HTML (Hypertext Markup Language) is the standard markup language used to create web pages. It provides the structure for content on the internet, including text, images, links, and multimedia elements.

    Why Use HTML for Creating a Website?

    • Easy to Learn: Ideal for beginners.

    • Complete Control: Allows customisation at every level.

    • SEO-Friendly: Provides clean, structured code for search engines.

    • Browser Compatibility: Works across all web browsers.

    Tools You Will Need

    Before you start building your website, gather the following tools:

    1. Text Editor

    • Notepad (Windows)

    • TextEdit (Mac)

    • VS Code (Recommended)

    • Sublime Text

    2. Web Browser

    • Google Chrome

    • Mozilla Firefox

    • Safari

    • Microsoft Edge

    3. Hosting Service (For Live Website)

    • GitHub Pages (Free)

    • Netlify (Free/Paid)

    • Hostinger, Bluehost (Paid)

    How to Create a Website Using HTML (Step-by-Step Guide)

    Step 1: Setting Up Your Project Folder

    • Create a new folder on your computer where all your website files will be stored.

    • Name it something relevant, like “MyWebsite”.

    Step 2: Creating Your First HTML File

    1. Open your preferred text editor (e.g., VS Code).

    2. Create a new file and save it as “index.html” inside your project folder.

    3. Add the basic HTML structure:

    <!DOCTYPE html>

    <html>

    <head>

        <title>My First Website</title>

    </head>

    <body>

        <h1>Welcome to My Website</h1>

        <p>This is a simple website created using HTML.</p>

    </body>

    </html>

     

    1. Save the file.

    Step 3: Viewing Your Website

    1. Open your index.html file with any web browser (Right-click > Open with > Choose your browser).

    2. You should see a basic webpage with a heading and a paragraph.

    Step 4: Adding More HTML Elements

    To make your website more engaging, you can add various HTML elements:

    Headings

    <h1>Main Heading</h1>

    <h2>Sub Heading</h2>

    <h3>Smaller Heading</h3>

     

    Paragraphs

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

     

    Links

    <a href=”https://www.example.com”>Visit Example</a>

     

    Images

    <img src=”image.jpg” alt=”Description of Image” width=”500″>

     

    Lists

    <ul>

        <li>Item 1</li>

        <li>Item 2</li>

        <li>Item 3</li>

    </ul>

     

    <ol>

        <li>First Item</li>

        <li>Second Item</li>

        <li>Third Item</li>

    </ol>

     

    Step 5: Creating Multiple Pages

    1. Create another file named “about.html”.

    2. Add the following code:

    <!DOCTYPE html>

    <html>

    <head>

        <title>About Page</title>

    </head>

    <body>

        <h1>About Me</h1>

        <p>This is the about page of my website.</p>

        <a href=”index.html”>Back to Home</a>

    </body>

    </html>

     

    Step 6: Linking Pages Together

    Update your index.html file to include a link to your about.html page:

    <a href=”about.html”>About Me</a>

     

    Step 7: Adding Style with CSS

    To make your website more visually appealing, you can add CSS (Cascading Style Sheets).

    <head>

        <title>My Styled Website</title>

        <style>

            body {

                font-family: Arial, sans-serif;

                background-color: #f0f0f0;

                margin: 0;

                padding: 20px;

            }

            h1 {

                color: navy;

            }

            p {

                color: darkslategray;

            }

        </style>

    </head>

     

    Step 8: Making Your Website Live

    To make your website accessible to everyone, you need to host it online.

    1. GitHub Pages: Free and simple for static websites.

    2. Netlify: Offers free and premium hosting.

    3. Paid Hosting Services: Bluehost, Hostinger, SiteGround, etc.

    Best Practices for Creating a Website Using HTML

    • Use Semantic HTML: Ensure your code is well-structured.

    • Keep Your Code Clean: Indent properly and comment where necessary.

    • Use External CSS and JavaScript Files: For better performance and maintainability.

    • Make It Responsive: Use media queries for mobile optimization.

    • Test Across Browsers: Ensure compatibility with Chrome, Firefox, Safari, and Edge.

    Conclusion

    Learning how to create a website using HTML is the first step towards building a strong online presence. With a basic understanding of HTML, you can create impressive and functional websites from scratch.

    Continue building your skills by learning CSS and JavaScript to enhance your projects. Start coding today and bring your ideas to life!

     

    Share this article
    Md Saizul Amin
    Written by

    Digital Systems Strategist · AI Agent Developer · 9+ years in digital & IT

    Md Saizul Amin is a digital systems strategist and AI automation engineer from Dhaka, Bangladesh. With 9+ years across IT, web development and digital marketing, he writes practical guides on technology, business, education and online growth — and builds the same kinds of systems (AI agents, websites, SEO and ad campaigns) for clients in Bangladesh, the UK and the USA.

    9+Years in digital & IT
    50+Websites developed
    7Live AI agent systems
    $150K+Ad spend managed

    Specialist in

    AI agents & n8n automationLLM integration (Gemini, GPT-4o, Claude)Custom software & web appsWordPress developmentSEO · AEO · GEOMeta & Google AdsEmail deliverabilityCRM & funnelsIT infrastructure & cybersecurity

    Credentials & experience

    • 🎓
      B.Sc. in Computer Science & EngineeringBangladesh University of Business & Technology (BUBT), 2017–2021
    • 🤖
      AI Automation Engineer · Web Developer · SEO SpecialistUnique Mark Limited, Birmingham UK — 2024 to present
    • 🌱
      IT SpecialistGreen Fund Initiative Inc., USA — 2024 to present
    • 🏥
      Junior IT Consultant — Ministry of Health (DGHS)Built the first national Shareable Health Record website; supported 6,000+ facilities
    • 🧭
      Head of ITWEDO Bangladesh — led IT for 50+ staff, 2021–2023

    ✔ Researched and written by the author, informed by hands-on work on real projects. Articles are updated when facts, tools or guidelines change.

    Want results like this for your business?

    AI agents, custom software, websites and growth systems — let’s talk about yours.