• 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 Actions

Project 2: Contact Us Form (User Actions)

Mission

The Riverlight Community Hall contact form can now collect a message. Add the choices that help the team route it: interests, one preferred reply method, and clear consent.

What you'll build

A contact form extended with checkbox interests, an optional phone number, a radio-button group for a single reply method, required consent, and the existing submit button — all properly labeled.

The starter carries forward the completed Name, Email, Topic, Message, and submit controls. Add the choices before the button; do not rebuild the previous form.

One idea: names define a radio group

Checkboxes allow several independent answers. Add an optional phone field so a visitor who requests a call can supply a number; type="tel" offers a phone-friendly keyboard but does not check the number’s format. Radio buttons share one name when they represent a single decision.

html
<fieldset>
    <legend>Preferred reply method</legend>
    <input type="radio" id="reply-email" name="reply-method" value="email" />
    <label for="reply-email">Email</label>
    <input type="radio" id="reply-phone" name="reply-method" value="phone" />
    <label for="reply-phone">Phone</label>
</fieldset>

Use a separate checkbox for consent and add required when it must be accepted before sending. Every checkbox and radio needs visible label text, just like a text field.

Checkpoint

Run the form. You should be able to select several interests but only one reply method. Try to submit without consent: the browser should stop the request. If both reply options remain checked, make sure they use the same name. This HTML-only preview has no server to deliver messages or check that someone choosing a phone reply also supplied a number.

Your Task

  1. Add two interest checkboxes inside the form for room booking and volunteering.
  2. Add an optional phone input (type="tel") with a name and visible connected label, so a visitor can request a call.
  3. Add two radio buttons for one preferred reply method: email or phone.
  4. Give both reply-method radios the same non-empty name so only one stays selected.
  5. Add a separate required consent checkbox inside the form.
  6. Give every new checkbox and radio a visible label, either wrapping the control or connected with for and id.

Payoff

The contact form now collects the routing details the hall needs while keeping each choice understandable.

Hint 1
1 / 2
HINT 1

Use checkboxes for multiple interests and radio buttons for one preferred contact method.

HINT 2

Ensure submit control is inside the form.

Take the Quiz →
Loading editor…
READY
intercourses
html