HTML Project - A Simple Webpage with a Heading and Paragraph


Learn how to create a simple webpage using HTML with a basic heading and paragraph. This tutorial is perfect for beginners who are just getting started with HTML.

Step 1: Create an HTML file

Create a new file and name it index.html.


Step 2: Add the basic HTML structure

Start by adding the basic HTML structure, including the doctype, head, and body tags.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Simple Webpage</title>
</head>
<body>
    <!-- Content will go here -->
</body>
</html>


Step 3: Add a Heading and Paragraph

Inside the <body> tag, add an <h1> heading and a <p> paragraph.

<body>
    <h1>Welcome to My Webpage</h1>
    <p>This is a simple webpage with a heading and a paragraph.</p>
</body>


Final Code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Simple Webpage</title>
</head>
<body>
    <h1>Welcome to My Webpage</h1>
    <p>This is a simple webpage with a heading and a paragraph.</p>
</body>
</html>