CHAPTER 40 · HTML

Guided project: build and review a student-club page

Combine headings, links, lists, dates and semantic regions. Test structure and keyboard navigation before adding decoration.

Download example files (ZIP)

The project brief

Build a fictional study-club information page. Readers should find its purpose, next session, items to bring and an independent notice. Add a supplementary reminder separately. Make it understandable as plain HTML.

Do not add a fake Join button that claims registration but does nothing. A useful small page should state what it can do: present information and let readers move between sections.

Step 1: write content before tags

Write a short club introduction, a session date and place, a bring-list, an announcement and a related reminder. Keep details fictional and sentences short. A missing fact cannot be repaired with a nicer container.

Choose a title for the browser tab and h1 for the visible main heading. They occupy different places even if their wording is similar. Include lang=en, UTF-8 and viewport metadata to apply the document basics already learnt.

Step 2: make a page plan

Put introductory content in header, important section links in nav, main topics in main and closing information in footer. Use section for About and Next session, article for an independent notice, and aside for the supporting reminder.

Start with club-page-plan.html. It leaves out the full announcement so you can check reading order first. Compare it with student-club.html later rather than trying to type the entire page at once.

Step 3: connect links and destinations

Each local link has a hash followed by a destination id. Href=#session must match id=session exactly. Ids must be unique. Next session is more useful link text than repeated Click here. Save and test every link; opening a page alone does not prove navigation works.

The complete example includes a visible Skip to main content link. It offers a shorter route past repeated navigation. Main has tabindex=-1 so it can receive focus without becoming an extra normal Tab stop. Do not use positive tabindex values to invent a different reading order.

Step 4: choose heading levels and order

Use the page h1 first. Major topics and the announcement use h2. Bring these items uses h3 under Next practice session. The reminder uses h2 as a separate supporting area. Use a list for items; repeated br tags would not describe a list.

Source order should remain sensible before CSS. Do not move essential information far away just to reposition it visually later. Viewport metadata helps the browser use device width but cannot make every possible layout responsive by itself.

Step 5: dates and honest claims

Time gives a machine-readable datetime while keeping a friendly visible date. A clock value of 16:30 has no time zone, so visible text says India time. Human-readable explanations still matter.

The notice has its own header and footer inside article. The body-level footer belongs to the page. Neither promises signup. Do not add a form until you can explain its destination and what actually receives its answers.

Step 6: review like a reader

Check the tab title, clear h1, logical heading levels, working fragments and unique ids. Press Tab to reach links and Enter to follow them. Try the skip link in the saved page. Then read the whole page without thinking about colours.

A parser can catch some structural problems, but cannot decide whether a heading describes useful content. Combine automated checks with real reading and keyboard use. Ask a friend to find the session place without coaching them.

Follow the idea

Review a complete page
  1. 1Plan the reader’s task
  2. 2Build readable regions and headings
  3. 3Connect links to unique ids
  4. 4Test reading order and keyboard navigation

A clear page works before decoration is added.

Complete program: club-page-plan.html

Save this as club-page-plan.html. Open it in your browser.

club-page-plan.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Student Club Page Plan</title>
  </head>
  <body>
    <h1>Notebook Practice Club</h1>
    <header><p>A fictional club page for HTML practice.</p></header>
    <nav aria-label="Page sections">
      <a href="#about">About</a> | <a href="#session">Session</a>
    </nav>
    <main id="main-content" tabindex="-1">
      <section id="about">
        <h2>About the club</h2>
        <p>We explain one short example to a partner.</p>
      </section>
      <section id="session">
        <h2>Next practice session</h2>
        <p>Bring a notebook and a question about links.</p>
      </section>
    </main>
    <footer><p>This is a page plan, not a live club service.</p></footer>
  </body>
</html>
Browser previewDocument title: Student Club Page Plan

This preview shows the example in a browser. Save the complete code in local files to test links between pages and downloads. Same-page section links work here.

Expected result: a plain club page with two section links, two topics and a closing note. Both links reach matching ids. Main is ready for a later skip link.

Complete program: student-club.html

Save this as student-club.html. Open it in your browser.

student-club.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Student Club HTML Project</title>
  </head>
  <body>
    <h1>Notebook Practice Club</h1>
    <p><a href="#main-content">Skip to main content</a></p>
    <header><p>A fictional student club for practising HTML.</p></header>
    <nav aria-label="Page sections">
      <ul>
        <li><a href="#about">About</a></li>
        <li><a href="#session">Next session</a></li>
        <li><a href="#news">Club notice</a></li>
      </ul>
    </nav>
    <main id="main-content" tabindex="-1">
      <section id="about">
        <h2>About the club</h2>
        <p>Bring one example. Explain it to a partner, then compare what you both understood.</p>
      </section>
      <section id="session">
        <h2>Next practice session</h2>
        <p>
          Our imaginary session is on <time datetime="2027-02-09">9 February 2027</time> at
          <time datetime="16:30">4:30 pm</time>, India time.
        </p>
        <p>Meet in Room B-204. No booking is required for this fictional example.</p>
        <h3>Bring these items</h3>
        <ul>
          <li>A notebook</li>
          <li>A saved HTML page</li>
          <li>One question about links</li>
        </ul>
      </section>
      <article id="news">
        <header>
          <h2>New practice task</h2>
          <p>Posted <time datetime="2027-02-08">8 February 2027</time></p>
        </header>
        <p>Prepare a page with two section links and test both destinations.</p>
        <footer><p>Written by the practice desk.</p></footer>
      </article>
      <aside>
        <h2>Helpful reminder</h2>
        <p>Keep a copy before changing an example so you can compare your work.</p>
      </aside>
    </main>
    <footer><p>Created for HTML learning. This page does not register members.</p></footer>
  </body>
</html>
Browser previewDocument title: Student Club HTML Project

This preview shows the example in a browser. Save the complete code in local files to test links between pages and downloads. Same-page section links work here.

Expected result: a visible skip link, section navigation, readable topics, a dated notice and a supplementary reminder. Links reach their ids and change the fragment. The page does not create membership.

Problem and solution

Problem: Next session changes the address without reaching the intended information.

Solution: compare the fragment spelling with its destination id and make sure the id occurs once. Test with keyboard and mouse; a colour change alone does not prove that navigation works.

Common mistakes and useful tips

  • Do not leave href=# as a finished destination.
  • Do not choose headings for text size alone.
  • Avoid duplicate ids after copying sections.
  • Keep useful navigation accessible.
  • Do not call essential information aside merely for its position.
  • Make fictional details and service limits clear.

Practice questions

  1. Why write a brief first?
  2. Which id does Next session target?
  3. Why is the notice an article?
  4. What does tabindex=-1 do here?
  5. Does 16:30 identify India time alone?
  6. Create a fictional club page and test links, headings and the keyboard route. Explain a correction.
Check your practice answers
  1. It identifies what readers need, so structure serves the content.
  2. Session, through href=#session.
  3. It is a complete announcement that makes sense independently.
  4. It allows main to receive focus without adding it to normal Tab order.
  5. No. The visible text states the time zone.
  6. Use clear regions, unique ids and matching fragments. A useful correction might repair a mismatched id, unclear link or skipped heading level.

Interview questions

What makes this more than div groups?

The elements describe each region's purpose: navigation, main content, topic sections and an independent announcement.

Why test before decorative CSS?

It reveals confusing source order and weak structure. Decoration should build on readable content.

What is a skip link for?

It gives a direct route past repeated content to main content, especially useful for keyboard users.

What still needs manual review?

Readability, useful headings, meaningful link text and real keyboard behaviour need human review alongside structural checks.

Quick revision

  • Plan, build a small version, then extend.
  • Match fragment links to unique ids.
  • Choose explicit heading levels and clear regions.
  • Review keyboard behaviour and content.