---
title: "Registration Form"
description: "Collects attendee information and event participation choices - the ticket, the attendee, the workshops and the practical needs."
slug: "registration-form"
---

import { DocPage, PageHeader, SkillPanel, SourceFiles, DocLink, SkillField, SkillText, SkillRow, ApiPill } from "../../lib/components/index";

<DocPage meta={meta}>

<PageHeader slug="registration-form" title="Registration Form" component="registration-form">
  Collects attendee information and event participation choices - the ticket, the attendee, the workshops and the practical needs. Part of the <DocLink href="website-events-promotions.html">Events & Promotions</DocLink> blocks.
</PageHeader>

<SkillPanel component="registration-form">
  <SkillField label="Native basis">
<SkillText>A <code>&lt;form&gt;</code> of <code>&lt;fieldset&gt;</code>s: tickets as radio cards (price, perks, "few left" Badge), attendee Inputs with <code>autocomplete</code>, workshops as Checkboxes, a dietary Select, an accessibility Textarea, consent and the total.</SkillText>
  </SkillField>

  <SkillField label="Built from">
<SkillText><DocLink href="radio.html">Radio</DocLink>, <DocLink href="checkbox.html">Checkbox</DocLink>, <DocLink href="input.html">Input</DocLink>, <DocLink href="select.html">Select</DocLink>, <DocLink href="textarea.html">Textarea</DocLink>, <DocLink href="badge.html">Badge</DocLink>, <DocLink href="button.html">Button</DocLink>.</SkillText>
  </SkillField>

  <SkillField label="Web Platform APIs">
<SkillRow>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset" title="grouped controls with a legend"><code>&lt;fieldset&gt;</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/:has" title="parent styles react to a checked input or a state inside"><code>:has()</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation" title="required, type and pattern - the browser checks the form"><code>Constraint validation</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete" title="the browser fills known fields"><code>autocomplete</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output" title="a computed result"><code>&lt;output&gt;</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries" title="the layout follows the block width, not the viewport"><code>Container queries</code></ApiPill>
  </SkillRow>
  </SkillField>

  <SkillField label="Classes">
<SkillRow>
    <code>.mk-registration-form</code>
    <code>.mk-registration-form-group</code>
    <code>.mk-registration-form-tickets</code>
    <code>.mk-registration-form-ticket</code>
    <code>.mk-registration-form-ticket-name</code>
    <code>.mk-registration-form-fields</code>
    <code>.mk-registration-form-field</code>
    <code>.mk-registration-form-choices</code>
    <code>.mk-registration-form-total</code>
  </SkillRow>
  </SkillField>

  <SkillField label="Data attributes">
<SkillText>None.</SkillText>
  </SkillField>
</SkillPanel>

```html example label="Default" hint="Tickets as radio cards in a row from 40rem (the checked one is outlined), attendee Inputs with autocomplete, workshops as Checkbox cards, a dietary Select, needs, consent and the total in an <output>." previewStyle="align-items:stretch;"
<section class="mk-registration-form" aria-labelledby="reg-title">
  <h2 id="reg-title" class="sr-only">Register for Acme Summit 2026</h2>
  <form action="#" method="post">
    <fieldset class="mk-registration-form-group">
      <legend>Ticket</legend>
      <div class="mk-registration-form-tickets">
        <label class="mk-registration-form-ticket" for="rg-standard"
          ><input class="radio" type="radio" name="ticket" id="rg-standard" value="rg-standard" checked required /><span
            class="mk-registration-form-ticket-name"
            >Standard</span
          ><b>€290</b><small>Both days, lunch, recordings.</small></label
        >
        <label class="mk-registration-form-ticket" for="rg-workshop"
          ><input class="radio" type="radio" name="ticket" id="rg-workshop" value="rg-workshop" required /><span
            class="mk-registration-form-ticket-name"
            >Standard + Workshops <span class="badge" data-variant="secondary" data-size="sm">Few left</span></span
          ><b>€440</b><small>Everything in Standard plus two hands-on workshops.</small></label
        >
        <label class="mk-registration-form-ticket" for="rg-stream"
          ><input class="radio" type="radio" name="ticket" id="rg-stream" value="rg-stream" required /><span
            class="mk-registration-form-ticket-name"
            >Online</span
          ><b>€90</b><small>Live stream, Q&amp;A and recordings.</small></label
        >
      </div>
    </fieldset>
    <fieldset class="mk-registration-form-group">
      <legend>Attendee</legend>
      <div class="mk-registration-form-fields">
        <div class="mk-registration-form-field"
          ><label class="label" for="rg-name">Full name</label
          ><input class="input" id="rg-name" name="name" autocomplete="name" required
        /></div>
        <div class="mk-registration-form-field"
          ><label class="label" for="rg-email">Email</label
          ><input class="input" id="rg-email" type="email" name="email" autocomplete="email" required
        /></div>
        <div class="mk-registration-form-field"
          ><label class="label" for="rg-org">Company</label
          ><input class="input" id="rg-org" name="organization" autocomplete="organization"
        /></div>
        <div class="mk-registration-form-field"
          ><label class="label" for="rg-role">Role</label
          ><input class="input" id="rg-role" name="role" autocomplete="organization-title"
        /></div>
      </div>
    </fieldset>
    <fieldset class="mk-registration-form-group">
      <legend
        >Workshops
        <small style="font-weight: 400; color: var(--muted-foreground)">(with the workshop ticket)</small></legend
      >
      <div class="mk-registration-form-choices">
        <div class="checkbox-item"
          ><input class="checkbox" type="checkbox" id="rg-w1" name="workshops" value="sync" /><label for="rg-w1"
            >Offline-first sync, hands on</label
          ><small>12 seats left</small></div
        >
        <div class="checkbox-item"
          ><input class="checkbox" type="checkbox" id="rg-w2" name="workshops" value="a11y" checked /><label for="rg-w2"
            >Accessible components from scratch</label
          ><small>4 seats left</small></div
        >
      </div>
    </fieldset>
    <fieldset class="mk-registration-form-group">
      <legend>Your needs</legend>
      <div class="mk-registration-form-fields">
        <div class="mk-registration-form-field"
          ><label class="label" for="rg-diet">Dietary preference</label
          ><select class="select" id="rg-diet" name="diet"
            ><option>No preference</option
            ><option>Vegetarian</option
            ><option>Vegan</option
            ><option>Gluten-free</option></select
          ></div
        >
        <div class="mk-registration-form-field" data-span="full"
          ><label class="label" for="rg-a11y">Accessibility needs</label><textarea
            class="textarea"
            id="rg-a11y"
            name="access"
            rows="2"
            placeholder="Step-free access, captions, a quiet room…"
          ></textarea>
        </div>
      </div>
    </fieldset>
    <div class="mk-registration-form-total">
      <div><span>Total incl. VAT</span><output name="total" for="rg-standard rg-workshop rg-stream">€290</output></div>
      <button class="btn" data-size="lg" type="submit">Register</button>
    </div>
  </form>
</section>
```

<SourceFiles component="registration-form" section="css" />

</DocPage>
