Lesson 1
Building a Basic Page Structure
Building a Basic Page Structure

Welcome to your first step in creating a comprehensive About Me webpage! In this unit, we'll explore the fundamental structure of an HTML webpage. This is where it all begins — laying down a strong foundation for more complex elements you'll add later.

Setting Up the Basic Structure

In this unit, you will set up the basic structure of an HTML webpage. We'll cover how to define the document type, use essential tags like <head>, <title>, and <body>, and build sections for your header, main content, and footer.

Here is a quick preview of the code we'll be working with:

HTML, XML
1<!DOCTYPE html> 2<html lang="en"> 3<head> 4 <meta charset="UTF-8"> 5 <title>About Me - Basic Structure</title> 6</head> 7<body> 8 <header> 9 <h1>Welcome to My Website</h1> 10 </header> 11 <main> 12 <section id="home"> 13 <h2>Home</h2> 14 <p>This is the homepage of my personal website.</p> 15 </section> 16 </main> 17 <footer> 18 <p>&copy; 2024 My Personal Website</p> 19 </footer> 20</body> 21</html>

This is a simple yet complete framework. It will serve as the base for your webpage.

Why It Matters

Understanding the basic structure of an HTML document is critical. A well-organized structure helps browsers interpret and display your webpage correctly. This will ensure that any additional elements you add later — whether they are images, tables, or navigation links — integrate seamlessly into your design.

Moreover, building a clean structure from the start makes your code easier to read and maintain. It’s like setting up the backbone of your webpage. With a strong foundation, the more complex parts will be easier to handle.

Excited to start building? Let's jump into the practice section and create the foundation of your About Me webpage together.

Enjoy this lesson? Now it's time to practice with Cosmo!
Practice is how you turn knowledge into actual skills.