• in
InterCourses
CoursesBlogs
0
← Introduction to HTML
○What Is HTML? See Tags in Action○Exercise: Build the Meridian Signal○Complete HTML5 Page Structure: See It in Action○Exercise: Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy Demo: H1 and H2○Exercise: Extend the Signal Brief○Paragraphs and Inline Tags Demo○Exercise: Write Meridian's Survey Notes○List Types Demo: Steps, Items, and Terms○Exercise: Build a Crew member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks○Images○Applying Styles to HTML✦Module Quiz
○Div and Span○HTML Tables○Classes and IDs○Review: Structured Profile✦Module Quiz
○Project 1 - Visiting Card Structure○Project 1 - Visiting Card Actions✦Module Quiz
○The Head Element and Page Title○Meta Tags○HTML Entities✦Module Quiz
○Form Basics Demo: Join the Meridian Relay○Exercise: Build a Night-Shift Check-In○Input Types Demo: Build a Mission Profile○Exercise: Record Beacon Maintenance○Choice Controls Demo: Select Training Modes○Exercise: Plan a Supply Pickup○Response Controls Demo: Send a Mission Reply○Exercise: Build a Rescue Dispatch Report○Challenge: Send an Emergency Beacon✦Module Quiz
●Project 2 - Contact Us Form Structure○Project 2 - Contact Us Form Actions✦Module Quiz
○Embedding Video○Embedding Audio○Iframes✦Module Quiz
○Semantic HTML Tags○Details, Figure, and Figcaption✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz

Project 2 - Contact Us Form Structure

Project 2: Create a Contact Us Form (Structure)

Mission

You have practiced labels, input types, and choice controls at the Meridian Relay. Now apply those patterns to the Riverlight Community Hall contact page for room bookings, volunteer questions, and accessibility requests.

What you'll build

A labeled contact form with required Name and Email fields, a Message box, a Topic menu, and a submit button — all inside one form. The action URL in the reference answer is illustrative; the preview does not deliver messages to the hall.

The starter already includes the Contact Us heading; build the form below it.

One idea: labels make a form usable before it is styled

A label tells people and assistive technology what a control means. Connect it with matching for and id values; repeat that pattern for inputs, textareas, and selects.

html
<label for="topic">Topic</label>
<select id="topic" name="topic">
    <option value="booking">Room booking</option>
    <option value="volunteer">Volunteering</option>
    <option value="access">Accessibility</option>
</select>

The browser can require an answer with required. Put the controls inside one <form method="post"> so they travel together when someone submits.

Checkpoint

Run the page. You should see a complete first-draft contact form. Try submitting it without Name or Email; the browser should point to a required field. If clicking a label does not focus its control, compare its for and id values.

Your Task

  1. Add a <form method="post"> below the heading.
  2. Add a text input for Name inside the form.
  3. Add an email input for Email inside the form.
  4. Add a <textarea> for Message inside the form.
  5. Mark the Name input required.
  6. Mark the Email input required.
  7. Add a Topic <select> with at least three relevant choices (room booking, volunteering, and accessibility).
  8. Add a submit button inside the form.
  9. Give each of the four fields a visible <label> connected by matching for and id.

Payoff

The hall now has a solid contact-form structure that can collect a useful first message.

Hint 1
1 / 2
HINT 1

Each input should have a matching label using for/id.

HINT 2

Use method="post" for contact form submission.

Loading editor…
READY
intercourses
html