Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Introduction to HTML Level One ยท Lesson 4 of 11

Module Three

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Module 3 - Working with Text Content

Module 3: Working with Text Content

Module Introduction

In the last module, we learned how an HTML page is organized. In this module, we will learn how to add words and sentences to our webpage. We will learn about headings, paragraphs, line breaks, and text formatting.


Lesson 1: Headings in HTML

Headings are titles used to organize information on a webpage. Just like a book has chapter titles, a webpage uses headings.

HTML has six heading levels:

<h1>Biggest Heading</h1>
<h2>Second Biggest Heading</h2>
<h3>Third Biggest Heading</h3>
<h4>Fourth Heading</h4>
<h5>Fifth Heading</h5>
<h6>Smallest Heading</h6>

Fun Example

Think of headings as signboards in a shopping mall. They help people know where to go and what they are reading.


Lesson 2: Paragraphs

A paragraph is a group of sentences. In HTML, we use the <p> tag for paragraphs.

<p>My name is Tolu.</p>

<p>I love playing football.</p>

Fun Example

Imagine telling a story. Each new idea goes into a new paragraph.


Lesson 3: Line Breaks

Sometimes we want text to move to a new line. We use the <br> tag.

My name is Tolu.<br>
I am 10 years old.<br>
I love football.

The browser will show each sentence on a new line.

Fun Example

Think of pressing the Enter key on your keyboard. The <br> tag does the same thing.


Lesson 4: Horizontal Lines

A horizontal line separates sections of a webpage. We use the <hr> tag.

<h1>My Hobbies</h1>

<hr>

<p>I enjoy football and reading books.</p>

The browser will draw a line across the page.


Lesson 5: Making Text Bold

Bold text is darker and stronger. We use the <strong> tag.

<p>My favourite subject is
<strong>Mathematics</strong>.</p>

Example Result

My favourite subject is Mathematics.


Lesson 6: Making Text Italic

Italic text leans to one side. We use the <em> tag.

<p>I love <em>football</em>.</p>

Example Result

I love football.


Lesson 7: Adding Comments

Comments are notes written for programmers. Visitors cannot see comments on the webpage.

<!-- This is my webpage -->

Fun Example

Think of comments as secret notes written in your notebook. Only the person reading the notebook can see them.


Complete Example

<!DOCTYPE html>
<html>

<head>
    <title>About Me</title>
</head>

<body>

<h1>About Me</h1>

<p>My name is Tolu.</p>

<p>I am 10 years old.</p>

<p>I love <strong>football</strong> and
<em>video games</em>.</p>

<hr>

<p>Thank you for visiting my page.</p>

</body>

</html>

Class Exercise 1

Write the correct HTML tag:

  1. Biggest heading = __________
  2. Paragraph = __________
  3. Line break = __________
  4. Horizontal line = __________
  5. Bold text = __________

Class Exercise 2

Create a webpage called myhobbies.html.

Include:

  • A heading called "My Hobbies"
  • A paragraph about your favourite hobby
  • A second paragraph about your favourite game
  • A horizontal line between the two paragraphs

Class Exercise 3

Fix the missing tags below:

______ My School ______

______ I love learning science. ______

______ 

______ My favourite subject is Mathematics. ______

Use:

  • <h1>
  • <p>
  • <hr>

Mini Project

Create a webpage called aboutme.html.

Add:

  • Your name as a heading
  • A paragraph about yourself
  • Your favourite food in bold
  • Your favourite sport in italics
  • A horizontal line
  • A thank-you message at the bottom

Module Summary

  • Headings are used for titles.
  • Paragraphs are used for sentences and stories.
  • Line breaks move text to a new line.
  • Horizontal lines separate sections.
  • Strong tags make text bold.
  • Em tags make text italic.
  • Comments are hidden notes for programmers.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’