• 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

Form Basics Demo: Join the Meridian Relay

Mission

You can now name and describe a page; next, use HTML to collect answers. The crew has found the Meridian Relay. Its intake form must clearly identify each answer before a new operator can request training.

What you'll see

A completed relay intake form with labels connected to text, email, and password inputs.

Read the code

html
<label for="crew-contact">Crew contact</label>
<input type="text" id="crew-contact" name="crew-contact" required />

The label’s for value matches the input’s id, so clicking the label focuses the right field.

Try the preview

Run the page and click each label. The matching field receives focus. The button is the form’s clear submit action. The /relay-intake address is illustrative; this preview has no server to receive a real request.

Checkpoint

Use the preview to connect each visible result to the HTML that created it. This is a completed demonstration, so you do not need to edit the code.

Next

Continue to Exercise: Build a Night-Shift Check-In. You will recreate the same idea from a smaller starter file.

Learn more

MDN’s official documentation explains how a label is associated with its form control and why that connection matters for usability and accessibility. Read MDN’s reference for the <label> element when you want to go further.

Hint 1
1 / 1
HINT 1

This is a completed demo. Run the preview, then read the matching code.

Loading editor…
READY
intercourses
html