SimpleTuts.com

Creating a Webpage & Basic HTML Tags

Learn How to Create Your First Webpage Using Basic HTML Tags

In this class, students will learn what a webpage is, how websites work, and how to create their very first HTML webpage using basic HTML tags.

Class Objective

What is a Website?

What is HTML?

HTML Document Structure

Creating the First Webpage

Step 1: Open Notepad or VS Code and create a file named index.html

Step 2: Write the following HTML code:


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

    <h1>My First Webpage</h1>
    <p>This is my first HTML page.</p>

</body>
</html>
Run Code

Step 3: Save the file and open it in a web browser.

Basic HTML Tags

Headings


<h1>Main Heading</h1>
<h2>Sub Heading</h2>

Paragraph


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

Line Break and Horizontal Line


This is line one<br>
This is line two

<hr>

Text Formatting Tags


<b>Bold Text</b><br>
<i>Italic Text</i><br>
<u>Underlined Text</u>

In-Class Practice Task

Assignment