HTML and CSS course · Module 2: The Web and HTML Elements

Mini-Project: Egyptian Explorer's Business Card

5 min read ·
In this lesson7

Congratulations, young scribe! You've reached the mini-project where you'll combine everything you've learned in this module. Mohamed says: "The best way to solidify knowledge is to apply it in practice - just as the best way to learn to build pyramids was... building pyramids!"

In this project, you'll create a business card page for a fictional Egyptian explorer - an archaeologist who travels across Egypt, discovering ancient secrets. The page will use all the HTML elements you've learned: headings, paragraphs, text formatting, links, images, and more.

Project Structure

We start with a complete HTML skeleton. Remember - every HTML page needs <!DOCTYPE html>, the <html> tag, <head> and <body> sections:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Dr. Amara Hassan - Explorer of Egypt</title>
</head>
<body>
  <!-- We'll place all the business card content here -->
</body>
</html>

Step 1: Header and Introduction

Start with the main heading with the explorer's name and a short introductory paragraph. Use <h1> for the name and <p> with <strong> and <em> formatting:

<h1>Dr. Amara Hassan</h1>
<p><em>Archaeologist, explorer, and researcher of ancient Egypt</em></p>

<hr>

<p>Welcome to my page! I am <strong>Dr. Amara Hassan</strong> - for 15 years
I've been exploring the mysteries of Ancient Egypt. My discoveries include
<mark>previously unknown chambers</mark> in the Valley of the Kings and unique
artifacts from the New Kingdom period.</p>

Note the use of:

  • <em> - italics emphasizing the motto/title
  • <hr> - horizontal line separating sections
  • <strong> - bold for the important name
  • <mark> - highlighting a key achievement

Step 2: "About Me" Section with Text Formatting

Add a section with a biography, using various formatting tags:

<h2>About Me</h2>

<p>I was born in <strong>Cairo</strong> and since childhood I was fascinated by
ancient ruins. After studying at <em>Cairo University</em>, I earned
a doctorate in archaeology from Oxford University.</p>

<blockquote>
  <p>"Every stone in Egypt has its story. Our task is to hear it
  and tell the world."</p>
</blockquote>

<p>My main <strong>research areas</strong> are:</p>
<p>
  Pyramid architecture<br>
  Hieroglyphs and writing<br>
  Funeral rituals<br>
  Daily life in ancient Egypt
</p>

In this section, we applied:

  • <blockquote> - quote, the explorer's life motto
  • <br> - line breaks within a single paragraph (list without bullet points)
  • A mix of <strong> and <em> for different emphasis

Step 3: Section with Photo and Caption

Add a photo of the explorer with a caption, using <figure> and <figcaption>:

<h2>My Discoveries</h2>

<figure>
  <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e3/Kheops-Pyramid.jpg/500px-Kheops-Pyramid.jpg"
       alt="The Great Pyramid of Cheops at sunset"
       width="500">
  <figcaption>The Great Pyramid of Cheops - the site of my most important research</figcaption>
</figure>

<p>In 2019, I discovered a <mark>hidden chamber</mark> near the
<strong>Pyramid of Cheops</strong>. The chamber contained
<em>47 papyri</em> with notes from the pyramid builders -
the oldest known construction diaries!</p>

Key elements:

  • <img> with src attribute (image URL), alt (description), and width (width)
  • <figure> + <figcaption> - semantic wrapping of the image with a caption

Add a section with links to external resources and contact information:

<h2>Useful Links</h2>

<p>Want to learn more about Ancient Egypt?
Here are my favorite sources:</p>

<p>
  <a href="https://www.britannica.com/place/ancient-Egypt" target="_blank" rel="noopener noreferrer">
    Encyclopedia Britannica - Ancient Egypt
  </a>
</p>

<p>
  <a href="https://www.metmuseum.org/about-the-met/collection-areas/egyptian-art" target="_blank" rel="noopener noreferrer">
    Metropolitan Museum - Egyptian Art
  </a>
</p>

<h2>Contact</h2>

<p>Feel free to get in touch:</p>
<p>
  Email: <a href="mailto:amara.hassan@egypt-discoveries.com">amara.hassan@egypt-discoveries.com</a><br>
  Phone: <a href="tel:+48123456789">+48 123 456 789</a>
</p>

<p><a href="#top">Back to top</a></p>

In the links, we applied:

  • target="_blank" and rel="noopener noreferrer" - safely opening in a new tab
  • mailto: - link that opens the email client
  • tel: - phone call link (useful on phones)
  • href="#top" - anchor link to the top of the page

End the page with a footer and code comments:

<hr>

<!-- Page footer -->
<p>Page created as part of the CodeWorlds course - HTML/CSS World</p>
<p>Last updated: 2024</p>

<!--
  TODO: In the future add:
  - Photo gallery from expeditions
  - Contact form
  - Map of discoveries
-->

Here we used:

  • HTML comments <!-- --> - notes for the programmer, invisible on the page

Complete Structure

In summary, our business card contains:

  • Headings (<h1>, <h2>) - section organization
  • Paragraphs (<p>) - text content
  • Formatting (<strong>, <em>, <mark>) - text emphasis
  • Quote (<blockquote>) - the explorer's motto
  • Lines (<hr>, <br>) - separators and line breaks
  • Image (<img>) with <figure> and <figcaption> - photo with caption
  • Links (<a>) - navigation, email, phone, anchors
  • Comments (<!-- -->) - notes in the code

Mohamed summarizes: "You've created your first real HTML page! Every element you used has its place - like every stone in a pyramid. Now try it out in the editor below and create your own business card!"

Code for this lesson: index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Business Card - Mohamed Al-Rashid</title>
</head>
<body>
    <h1>Mohamed Al-Rashid</h1>
    <p><em>Archaeologist and Discoverer of Ancient Mysteries</em></p>

    <hr>

    <figure>
        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/All_Gizah_Pyramids.jpg/500px-All_Gizah_Pyramids.jpg"
             alt="Pyramids of Giza - Mohamed's workplace"
             width="500">
        <figcaption>Pyramids of Giza - my favorite workplace</figcaption>
    </figure>

    <h2>About me</h2>
    <p>I am an <strong>archaeologist</strong> with <mark>30 years of experience</mark>
       in studying ancient civilizations. I specialize in
       <em>deciphering hieroglyphs</em> and discovering forgotten tombs.</p>

    <blockquote>
        "Every stone in a pyramid tells a story - you just need to know how to listen."
    </blockquote>

    <h2>My discoveries</h2>
    <ul>
        <li>Tomb Nefertiti - <strong>2019</strong></li>
        <li>Scrolls from the Library of Alexandria - <strong>2021</strong></li>
        <li>Underground Temple of Osiris - <strong>2023</strong></li>
    </ul>

    <hr>

    <h2>Contact</h2>
    <p>Email: <a href="mailto:mohamed@pyramids.eg">mohamed@pyramids.eg</a></p>
    <p>Website: <a href="https://example.com" target="_blank" rel="noopener noreferrer">www.pyramids.eg</a></p>
    <p>© 2025 Mohamed Al-Rashid</p>
</body>
</html>

Docs entries used in this lesson

Spotted a mistake in this lesson?

Hands-on tasks in the game

  • Code editor

    Create a business card with: a name in <h1>, a specialization in <em>, a photo in <figure>, a description with <strong> and <mark>, a quote in <blockquote>, a list of discoveries (each on its own line, e.g. separated with <br>), and contact info with mailto: and tel: links.

  • Code editor

    Create a complete business card with navigation (#about-me, #discoveries, #gallery, #contact), formatted sections, a gallery of 2 photos in <figure>, email/phone links, and a 'Back to top' link. Use <hr> between sections.

  1. Coding taskCreate an HTML Business Card
  2. Coding taskExtended Business Card with Navigation

Useful articles