Concepts 🚀 Project 🧮 Labs
🧮 Labs / HTML / Complete form — all input types + validation

Complete form — all input types + validation

Every input type in one form: text, email, password, number, range, date, checkbox, radio, select, textarea, file.

index.html v3.1
Live preview updates as you type
🧠 How it works

Every input type serves a different purpose: text — single-line text. email — validates email format, shows @ on mobile keyboards. password — masks characters. number — spinner, min/max/step validation. range — slider. Pair with <span> to show the value (needs JS to update). date — native date picker. checkbox — multiple selections (same name, different values). radio — single selection (same name, different values). Always one selected. select — dropdown. <option> for each choice. textarea — multi-line text. rows = height. file — file upload. accept='.csv' filters the file picker. hidden — data you want in the form submission but not visible to the user. fieldset + legend — groups related inputs (like radio buttons) with a label. required — browser won't submit without a value. minlength/maxlength — text length validation.

✏️ Try these changes
  • Change type="text" to type="password" for model_name
    → text becomes masked dots
  • Add 'multiple' to the file input
    → allows uploading multiple files
  • Add 'disabled' to the select
    → dropdown becomes greyed out
  • Change type="number" to type="range" for max_depth
    → number becomes a slider
  • Add <option value="" selected disabled>Select...</option> as the first option in the select
    → adds a placeholder