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

Module Two

๐Ÿ“– 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.
3
Module 2 - HTML Document Structure

Module 2: HTML Document Structure

Lesson 1: What is an HTML Document?

An HTML document is a file that tells a web browser what to show on a webpage. Think of it as a recipe for baking a cake. The recipe tells you what ingredients to use and what steps to follow. In the same way, an HTML document tells the browser what to display.

Fun Example

Imagine building a toy house. Every toy house needs a foundation, walls, a roof, and rooms. An HTML document also has parts that work together to build a webpage.


Lesson 2: Understanding HTML Tags

HTML uses special words called tags. Tags tell the browser what each piece of content is.

Most tags come in pairs:

<tag>
Content goes here
</tag>

Example

<p>I love football.</p>

The <p> tag means paragraph.

Fun Example

Think of tags as sandwich bread. One slice starts the sandwich and another slice ends it. The filling is the content in the middle.


Lesson 3: The Basic Structure of an HTML Page

Every HTML page follows a structure.

<!DOCTYPE html>
<html>

<head>
    <title>My First Webpage</title>
</head>

<body>
    Welcome to my webpage!
</body>

</html>

What Each Part Does

  • <!DOCTYPE html> - Tells the browser this is an HTML5 page.
  • <html> - Holds the whole webpage.
  • <head> - Stores information about the page.
  • <title> - Gives the webpage a name.
  • <body> - Contains everything people see.

Lesson 4: Understanding the Head Section

The head section is like the cover page of a school notebook. It contains information about the webpage.

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

The title appears on the browser tab.

Example

If your title is "My School Website", that name will appear at the top of the browser tab.


Lesson 5: Understanding the Body Section

The body section contains everything visitors can see.

<body>
    Hello Everyone!
</body>

Whatever is inside the body appears on the webpage.

Fun Example

If a website is a house, the body is all the furniture, pictures, and decorations inside it.


Lesson 6: Creating Your First Proper HTML Page

<!DOCTYPE html>
<html>

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

<body>

    My name is Tunde.

    I am 10 years old.

    I love playing football.

</body>

</html>

Save this file as aboutme.html and open it in your browser.


Class Exercise 1

Match the HTML part with its meaning:

HTML Part Meaning
<html> _____________
<head> _____________
<body> _____________
<title> _____________

Class Exercise 2

Create a webpage called myfamily.html.

Add:

  • A title called "My Family"
  • Your name
  • Your favourite food
  • Your favourite game

Class Exercise 3

Fill in the missing tags:

<!DOCTYPE html>

<_____>

<head>
    <title>My Page</title>
</head>

<_____>
    Hello World!
</_____>

</html>

Mini Project

Create a webpage called myschool.html.

Include:

  • The name of your school
  • Your class
  • Your favourite subject
  • A title for the webpage

Module Summary

  • An HTML document is used to create webpages.
  • HTML uses tags to organize content.
  • Every webpage has an HTML structure.
  • The head contains information about the page.
  • The title names the webpage.
  • The body contains everything users can see.
  • You can create and save your own HTML pages.

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