Steps to Create a Webpage in HTML using Notepad

Description: Create a web page in HTML using Notepad, save it, and open it in a browser.

Hint:

  • Open Notepad, write the HTML code and save the file as index.html with the type “All Files”.
  • Double-click the file to open it in the browser.

HTML code for the web page

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My First Web Page</title>
</head>
<body>
  <h1>Welcome to My Page</h1>
  <p>This page was created using Notepad.</p>
</body>
</html>

Output in the browser:

Output in the browser

Welcome to My Page

This page was created using Notepad.

How it works

  • Step 1: Open Notepad and type the code above.
  • Step 2: Click File, then Save As. Name the file index.html, set “Save as type” to All Files and the encoding to UTF-8.
  • Step 3: Double-click the saved file. It opens in your default browser.
  • Step 4: To change the page, edit the file, save it and refresh the browser (F5).

A detailed guide with pictures is in HTML First Program using Notepad.


Learn more about the similar topics:
Tutorials
HTML Introduction
HTML First Program using Notepad
HTML Page Structure
Exercises & Assignments
Steps to Create a Webpage in HTML using Notepad
Write an HTML program to display hello world.
Write an HTML program to create a page about yourself
Interview Questions & Answers
What is the full form of HTML?
What is DOCTYPE in HTML?
Will HTML5 work without DOCTYPE?
How is the page structure of HTML5 different from previous HTML versions?
What is HTML?
What is the HTML page structure? Explain with example