---
title: "Application Form"
description: "Collects candidate details and application documents - grouped fields, a résumé drop zone, links and consent, validated by the browser."
slug: "application-form"
---

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

<DocPage meta={meta}>

<PageHeader slug="application-form" title="Application Form" component="application-form">
  Collects candidate details and application documents - grouped fields, a résumé drop zone, links and consent, validated by the browser. Part of the <DocLink href="website-company.html">Company</DocLink> blocks.
</PageHeader>

<SkillPanel component="application-form">
  <SkillField label="Native basis">
<SkillText>A <code>&lt;form&gt;</code> of <code>&lt;fieldset&gt;</code>s (personal details, documents, links), Inputs with <code>autocomplete</code>, a <code>&lt;input type="file"&gt;</code> inside a labelled drop zone, a consent Checkbox and a submit Button.</SkillText>
  </SkillField>

  <SkillField label="Built from">
<SkillText><DocLink href="input.html">Input</DocLink>, <DocLink href="label.html">Label</DocLink>, <DocLink href="textarea.html">Textarea</DocLink>, <DocLink href="checkbox.html">Checkbox</DocLink>, <DocLink href="select.html">Select</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/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/CSS/:user-invalid" title="errors show only after the user tried"><code>:user-invalid</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/input/file" title="native file picking"><code>&lt;input type="file"&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>
  </SkillRow>
  </SkillField>

  <SkillField label="Classes">
<SkillRow>
    <code>.mk-application-form</code>
    <code>.mk-application-form-section</code>
    <code>.mk-application-form-legend</code>
    <code>.mk-application-form-fields</code>
    <code>.mk-application-form-field</code>
    <code>.mk-application-form-hint</code>
    <code>.mk-application-form-upload</code>
    <code>.mk-application-form-consent</code>
    <code>.mk-application-form-actions</code>
  </SkillRow>
  </SkillField>

  <SkillField label="Data attributes">
<SkillText><code>data-variant="card"</code>.</SkillText>
  </SkillField>
</SkillPanel>

```html example label="Default" hint="Fieldsets with a description column beside the fields from 48rem; Inputs with autocomplete; the résumé drop zone is a label around a native file input. Submit empty to see :user-invalid hints." previewStyle="align-items:stretch;"
<section class="mk-application-form" aria-labelledby="apply-title">
  <h2 id="apply-title" class="sr-only">Apply for Senior Sync Engineer</h2>
  <form action="#" method="post">
    <fieldset class="mk-application-form-section">
      <legend class="mk-application-form-legend"
        ><strong>Personal details</strong><span>How we reach you.</span></legend
      >
      <div class="mk-application-form-fields">
        <div class="mk-application-form-field"
          ><label class="label" for="ap-name">Full name</label
          ><input class="input" id="ap-name" name="name" autocomplete="name" required
        /></div>
        <div class="mk-application-form-field"
          ><label class="label" for="ap-email">Email</label
          ><input class="input" id="ap-email" type="email" name="email" autocomplete="email" required
        /></div>
        <div class="mk-application-form-field"
          ><label class="label" for="ap-phone">Phone <span class="mk-application-form-hint">(optional)</span></label
          ><input class="input" id="ap-phone" type="tel" name="phone" autocomplete="tel" inputmode="tel"
        /></div>
        <div class="mk-application-form-field"
          ><label class="label" for="ap-where">Where are you based?</label
          ><select class="select" id="ap-where" name="location"
            ><option>Portugal</option
            ><option>Germany</option
            ><option>Elsewhere in the EU</option></select
          ></div
        >
      </div>
    </fieldset>
    <fieldset class="mk-application-form-section">
      <legend class="mk-application-form-legend"
        ><strong>Documents</strong><span>PDF or DOCX, up to 10 MB.</span></legend
      >
      <div class="mk-application-form-fields">
        <div class="mk-application-form-field" data-span="full">
          <label class="mk-application-form-upload" for="ap-cv"
            ><i data-lucide="upload"></i><strong>Upload your résumé</strong><span>or drop it here</span>
            <input id="ap-cv" type="file" name="cv" accept=".pdf,.docx" required aria-describedby="ap-cv-hint" />
          </label>
          <span class="mk-application-form-hint" id="ap-cv-hint">Required - PDF or DOCX.</span>
        </div>
        <div class="mk-application-form-field" data-span="full"
          ><label class="label" for="ap-note"
            >Why Acme? <span class="mk-application-form-hint">(a few sentences)</span></label
          ><textarea class="textarea" id="ap-note" name="note" rows="4"></textarea>
        </div>
      </div>
    </fieldset>
    <fieldset class="mk-application-form-section">
      <legend class="mk-application-form-legend"
        ><strong>Links</strong><span>Anything that shows your work.</span></legend
      >
      <div class="mk-application-form-fields">
        <div class="mk-application-form-field"
          ><label class="label" for="ap-in">LinkedIn</label
          ><input class="input" id="ap-in" type="url" name="linkedin" placeholder="https://linkedin.com/in/…"
        /></div>
        <div class="mk-application-form-field"
          ><label class="label" for="ap-gh">GitHub or portfolio</label
          ><input class="input" id="ap-gh" type="url" name="portfolio" placeholder="https://…"
        /></div>
      </div>
    </fieldset>
    <div class="mk-application-form-actions">
      <label class="mk-application-form-consent"
        ><input class="checkbox" type="checkbox" name="consent" required />I agree that Acme stores my application for
        12 months.</label
      >
      <button class="btn" type="submit">Submit application</button>
    </div>
  </form>
</section>
```

```html example label="Card" hint="data-variant='card': one column on a card - for a sidebar next to the job details or a short application." previewStyle="align-items:stretch;"
<section class="mk-application-form" data-variant="card" aria-labelledby="apply-quick">
  <form action="#" method="post">
    <fieldset class="mk-application-form-section">
      <legend class="mk-application-form-legend"
        ><strong id="apply-quick">Quick apply</strong><span>Two minutes, no cover letter.</span></legend
      >
      <div class="mk-application-form-fields">
        <div class="mk-application-form-field"
          ><label class="label" for="aq-name">Full name</label
          ><input class="input" id="aq-name" name="name" autocomplete="name" required
        /></div>
        <div class="mk-application-form-field"
          ><label class="label" for="aq-email">Email</label
          ><input class="input" id="aq-email" type="email" name="email" autocomplete="email" required
        /></div>
        <div class="mk-application-form-field"
          ><label class="mk-application-form-upload" for="aq-cv"
            ><i data-lucide="file-text"></i><strong>Attach résumé</strong
            ><input id="aq-cv" type="file" name="cv" accept=".pdf,.docx" required /></label
        ></div>
      </div>
    </fieldset>
    <button class="btn" type="submit">Apply</button>
  </form>
</section>
```

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

</DocPage>
