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

Module Eight

๐Ÿ“– 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.
9
Module 8 - Semantic HTML

Module 8: Semantic HTML

Module Introduction

In the previous module, we learned how to create forms.

In this module, we will learn about Semantic HTML. Semantic HTML helps us organize our webpages using meaningful tags. These tags tell browsers and people what each part of a webpage does.


Lesson 1: What Does "Semantic" Mean?

Semantic means "having meaning."

Instead of using tags that say nothing about their purpose, Semantic HTML uses tags that clearly explain what they contain.

Fun Example

Imagine a toy box with labels. One box says "Cars," another says "Books," and another says "Games." The labels help you know what is inside each box.

Semantic HTML works the same way.


Lesson 2: The Header Element

The <header> tag contains the top section of a webpage.

<header>
    <h1>My School Website</h1>
</header>

Fun Example

The header is like the title page of a book. It tells visitors what the website is about.


Lesson 3: The Navigation Element

The <nav> tag contains links that help visitors move around a website.

<nav>
    <a href="#">Home</a>
    <a href="#">About</a>
    <a href="#">Contact</a>
</nav>

Fun Example

Think of navigation as road signs that help people find their way.


Lesson 4: The Main Element

The <main> tag contains the most important information on a webpage.

<main>
    <p>Welcome to my website.</p>
</main>

Fun Example

If a webpage were a school, the main section would be the classroom where most learning happens.


Lesson 5: The Section Element

The <section> tag divides content into different parts.

<section>
    <h2>My Hobbies</h2>
    <p>I enjoy football.</p>
</section>

Each section focuses on a specific topic.


Lesson 6: The Article Element

The <article> tag contains a complete piece of content, such as a story, news article, or blog post.

<article>
    <h2>My Trip to the Zoo</h2>
    <p>I saw lions and elephants.</p>
</article>

Fun Example

An article is like a chapter in a book. It can stand on its own and tell a complete story.


Lesson 7: The Footer Element

The <footer> tag contains information shown at the bottom of a webpage.

<footer>
    © 2026 My Website
</footer>

Fun Example

The footer is like the last page of a book, where you often find extra information.


Lesson 8: Why Semantic HTML is Important

  • It makes webpages easier to understand.
  • It helps search engines understand your website.
  • It makes code cleaner and more organized.
  • It helps people using screen readers.

Fun Example

Imagine your room is organized with labeled shelves. You can find things faster because everything has a place. Semantic HTML keeps webpages organized the same way.


Complete Example

<!DOCTYPE html>
<html>

<head>
    <title>My Website</title>
</head>

<body>

<header>
    <h1>My Website</h1>
</header>

<nav>
    <a href="#">Home</a>
    <a href="#">About</a>
</nav>

<main>

    <section>
        <h2>About Me</h2>
        <p>I love coding.</p>
    </section>

    <article>
        <h2>My First HTML Project</h2>
        <p>I created a webpage about my hobbies.</p>
    </article>

</main>

<footer>
    © 2026 My Website
</footer>

</body>
</html>

Class Exercise 1

Fill in the blanks:

  1. _____ contains the top part of a webpage.
  2. _____ contains navigation links.
  3. _____ contains the most important content.
  4. _____ contains a complete story or post.
  5. _____ appears at the bottom of a webpage.

Class Exercise 2

Create a webpage with:

  • A header
  • A navigation menu
  • A main section
  • A footer

Class Exercise 3

Fix the missing tags below:

<_____>
    <h1>My School Website</h1>
</_____>

<_____>
    <a href="#">Home</a>
</_____>

<_____>
    Welcome to my school website.
</_____>

Use:

  • <header>
  • <nav>
  • <main>

Mini Project

Create a webpage called myprofile.html.

Include:

  • A header with your name
  • A navigation menu
  • A section about yourself
  • An article about your favorite hobby
  • A footer with the year

Challenge Exercise

Create a "My School Website" page using:

  • Header
  • Navigation
  • Main
  • Two Sections
  • One Article
  • Footer

Module Summary

  • Semantic HTML uses meaningful tags.
  • Header contains the top part of a webpage.
  • Navigation helps users move around a website.
  • Main contains important content.
  • Sections divide content into topics.
  • Articles contain complete pieces of information.
  • Footers appear at the bottom of webpages.
  • Semantic HTML makes websites organized and easy to understand.

๐Ÿ† 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.
โ†’