Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP C C++ C# AWS W3.CSS HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING HTML & CSS BASH RUST TOOLS MATH

Projects

Projects Home Personal Page Profile Card Collection JavaScript Toolkit Portfolio Recipe Page CSS Landing Page JavaScript Data Toolkit Interactive Todo List Mobile Calculator Weather Dashboard Browser Puzzle Game E-commerce Frontend Analytics Dashboard

Share

HTML Project: Book a Table

Complete each step in the editor and watch the result as your page takes shape.

Build Book a Table, step-by-step

Let guests book a table.

Emojis, a booking form, and a big Book button.

Medium · +130 XP · HTML CSS

What you will use in this project

  • Emojis and entities
  • Forms and fieldsets
  • Input types
  • Form attributes

How it works

  1. 1 Follow the steps on the left. Each dot in the stepper bar is one focused chunk of work. Read the instructions, the “What to do” checklist, and any hints.
  2. 2 Write your code on the right. The editor is yours. Files auto-save as you type. Use the Preview tab to see your work in action.
  3. 3 Click Check code when you’re ready. We grade your work against the step’s rubric and tell you exactly what passed and what still needs work.
  4. 4 Pass a step to move on. Build the project cumulatively. Pass every step to complete it and earn the full XP.

How it’s graded

This project is broken into 5 steps. Each one has its own pass criterion. Click Check code on every step to verify your progress and earn the full +130 XP.

# Step & pass criterion Weight
1 Add emojis and symbols
  • In the menu <table>, before each item name, add an emoji code and a space, like &#9749; Espresso. Use &#9749; for Cappuccino, &#129360; for Croissant, &#129374; for Pancake stack and &#127826; for Cherry croissant.
  • At the start of the <p> in <footer>, add &copy; 2026 and a space.
16 pts
2 Start the booking form
  • Before </main>, add a <section class="card full" id="book"> with an <h2> and a <form>.
  • In it, add a <fieldset> with a <legend>, and four inputs with a <label> each: text, email, date, time, with ids name, email, day, time. Do not translate them.
  • In style.css, before @media, give .full grid-column: 1 / -1.
24 pts
3 Guests and seats
  • After </fieldset>, add <label for="guests"> and a type="number" input with id="guests".
  • Add <p>Where do you want to sit?</p>. Under it, add two type="radio" inputs, both name="seat", values inside and terrace, and a type="checkbox" for a birthday. Put each in a <label>, text after the input.
  • Add a <label> and a <textarea> for wishes.
24 pts
4 Finish the form
  • Add required to the inputs with id="name" and id="email".
  • Before </form>, add <input type="submit" value="Book my table">.
15 pts
5 Style the form
  • Before @media, give label display: block.
  • Give input, textarea width: 100%, padding: 12px 14px, border: none, border-radius: 14px, background-color: #F2F1EE and box-sizing: border-box.
  • Give input[type=radio], input[type=checkbox] width: auto, and input[type=submit] margin-top: 20px.
21 pts
index.html
Book a Table preview
← Browse all projects


Free account

Track your progress

XP earned 0 Day streak 0 Spaces 0 League —

New

Learn in Adventure Mode W3Schools Adventure App

Coding fundamentals as bite-sized lessons and challenges.

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by W3Schools. All Rights Reserved. W3Schools is Powered by W3.CSS.