How to Create Basic Webpage

16th July, 2026

🚀 Create Your First HTML Webpage

Follow these simple steps to create and run your very first HTML webpage.

Step-by-Step Guide
  1. Open a Text Editor

    You can use Notepad, Visual Studio Code (VS Code), Sublime Text, Notepad++, or any code editor of your choice.

  2. Create a New File

    Save the file with the .html extension. For example: index.html

  3. Write the HTML Code

    Copy and paste the following HTML code into your editor.

HTML Editor
Live Output
Displaying the webpage
  1. Save the File

    Ensure the filename is index.html.

  2. Open the File in a Browser
    • Double-click the HTML file, or right-click and choose Open With → Chrome, Firefox, Edge, or any browser.
    • Your webpage will now be displayed.
  3. Modify and Refresh

    Make changes to the HTML file, save it, and refresh the browser to see the updated webpage.

📘 Basic HTML Structure Explained

<!DOCTYPE html>

Declares that the document uses HTML5.

<html>

The root element that contains the complete webpage.

<head>

Stores metadata including the page title, character encoding, CSS links, and scripts.

<title>

Displays the page title in the browser tab.

<body>

Contains all visible webpage content.

<h1>

Defines the main heading.

<p>

Defines a paragraph.

Congratulations! You have successfully created your first HTML webpage. Continue experimenting by adding headings, images, links, tables, and lists to build more interesting webpages.