0Pricing
HTML for Kids · Lesson

HTML Structure: The Building Blocks

Understand the basic structure of an HTML document.

HTML Structure: The Building Blocks is a free HTML for Kids lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the HTML for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

1

HTML Structure: The Building Blocks

Welcome to the second lesson! Today, we’ll learn about the structure of an HTML document and how its parts fit together. Think of this as learning the skeleton of a web page.

HTML Structure: The Building Blocks — illustration 1

2

The HTML Document Structure

An HTML document has a specific structure that the browser understands. It’s like a recipe that tells the browser what to do.

The basic parts of an HTML document are:

  • Doctype Declaration: Tells the browser this is an HTML document.
  • HTML Tag: Contains all the content of the page.
  • Head: Holds information about the page (like the title).
  • Body: Holds the content visible to the user.

3

What Does the Structure Look Like?

Here’s what a basic HTML document structure looks like:

<!DOCTYPE html>
<html>
  <head>
    <title>My Web Page</title>
  </head>
  <body>
    <h1>Welcome to My Page</h1>
    <p>This is the content of my web page.</p>
  </body>
</html>

4

The Doctype Declaration

The <!DOCTYPE html> declaration appears at the top of every HTML document. It tells the browser to expect HTML5, the latest version of HTML.

Think of it as the starting point of your HTML recipe!

5

The HTML Tag

The <html> tag is the main container for all the code in your document. It tells the browser, “Everything inside here is HTML.”

Here’s how it looks:

<html>
  <!-- All other HTML tags go here -->
</html>

6

The Head Section

The <head> section holds information about your web page that isn’t visible on the page itself. For example:

  • Title: The text shown on the browser tab.
  • Meta Information: Extra details like the page description.

Example:

<head>
  <title>My Cool Web Page</title>
</head>

7

The Body Section

The <body> section contains everything visible to the user, such as text, images, and links. This is the main content area.

Example:

<body>
  <h1>Welcome!</h1>
  <p>This is my awesome web page.</p>
</body>

8

Putting It All Together

Here’s a complete example of an HTML document with all the parts we just learned:

<!DOCTYPE html>
<html>
  <head>
    <title>All About Me</title>
  </head>
  <body>
    <h1>Hi, I’m a Web Creator!</h1>
    <p>This is my first structured HTML page.</p>
  </body>
</html>

9

10

Great Job!

Congratulations! You’ve learned the structure of an HTML document. Now you know how all the parts fit together to make a web page. In the next lesson, we’ll start adding some real content to our pages. Get ready to build your first web masterpiece!

HTML Structure: The Building Blocks — illustration 10

Frequently asked questions

Is the “HTML Structure: The Building Blocks” lesson free?

Yes — the full text of “HTML Structure: The Building Blocks” is free to read here on the web, and the HTML for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the HTML for Kids course, upgrade to CoddyKit PRO.

What will I learn in “HTML Structure: The Building Blocks”?

Understand the basic structure of an HTML document. You practise HTML for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start HTML for Kids?

No prior experience is required. HTML for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “HTML Structure: The Building Blocks” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this HTML for Kids lesson?

Yes. Every HTML for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What is HTML?
  2. HTML Structure: The Building Blocks
  3. HTML Tags and Elements
  4. Setting Up Your First HTML Page
← Back to HTML for Kids