Skip to content
HTML Templates For Developers

Documentation

Campus — Student Registration Form

Version 1.0.0 · Vanilla HTML · 14 files · 153 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 14 files:

  • LICENSE.txt1.3 KB
  • README.md2.6 KB
  • assets/css/style.css17 KB
  • assets/fonts/lato-LICENSE.txt5.9 KB
  • assets/fonts/lato-latin-400-italic.woff224 KB
  • assets/fonts/lato-latin-400-normal.woff223 KB
  • assets/fonts/lato-latin-700-normal.woff223 KB
  • assets/fonts/lato-latin-900-normal.woff222 KB
  • assets/fonts/roboto-slab-LICENSE.txt11 KB
  • assets/fonts/roboto-slab-latin-wght-normal.woff233 KB
  • assets/images/favicon.svg319 B
  • assets/js/main.js15 KB
  • documentation/index.html11 KB
  • index.html20 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --color-paper#FFFDF7
  • --color-card#FFFFFF
  • --color-navy#1E3A8A
  • --color-navy-dark#172B66
  • --color-gold#EAB308
  • --color-gold-soft#FEF3C7
  • --color-ink#1B2336
  • --color-muted#55607A
  • --color-line#E4DFD0
  • --color-danger#B42318
  • --color-danger-soft#FEF0EE
  • --color-ok#0F766E

Interactive features

Programme and intake selects

Edit the INTAKES object in assets/js/main.js: each key is an option value from the programme select and each value lists the intakes offered.

Document checks

Each document row in index.html declares data-exts (allowed extensions) and data-max (megabytes). Add a row by copying one and giving the input a new id.

Validation

Every .field wrapper has a data-label used in error messages and the review. Add required, pattern, min or max to an input; extra rules go in customRule() in main.js.

Submit and review

Replace the timer in submitRegistration() in main.js with a request to your server and call onSuccess() when it succeeds. Print uses window.print() with the print rules at the end of style.css.

Customisation notes

Minimum age

The date-of-birth rule lives in customRule() in assets/js/main.js; change the cutoff date and the message, and the hint in index.html.

Add or remove sections

Each section is a section element with data-section and an id. Add a matching link in the sidebar list with the same id in data-step; progress and the review pick it up automatically.

College name and crest

The crest is inline SVG in the masthead and the favicon is assets/images/favicon.svg. Swap both and the college name in the footer.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • The form validates in the browser and shows a made-up reference number; no registration is sent, stored or emailed.
  • Selected documents are checked for type and size but are never uploaded.

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Lato typeface — OFL-1.1 (assets/fonts/lato-LICENSE.txt)
  • Roboto Slab typeface — Apache-2.0 (assets/fonts/roboto-slab-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.