Intern Track Roadmap

HTML forms: inputs

This course covers the HTML form element and the inputs where users type. It explains how action and method decide where data goes and which HTTP verb carries it. The name attribute turns each control into a key in params. Lessons walk through text, email, password and number inputs, textarea, and attributes such as value, placeholder, maxlength, readonly, disabled and hidden. Browser validation is treated as a convenience layer, with server validation in Rails enforcing the rules. A sign-up form ties the pieces together.

What you'll learn

  • ✓How form action and method shape the request, and why every control needs a name
  • ✓Text inputs and textarea: value, placeholder, maxlength and the Enter key
  • ✓Email inputs, required, and why server validation in Rails still decides
  • ✓What password masking protects, alongside HTTPS, hashing and autocomplete tokens
  • ✓When to use type=number and when digit identifiers need text with inputmode
  • ✓readonly versus disabled, autofocus, and the hidden authenticity token
Free preview · Lesson 1 5 min read

form: the page starts listening

Lists, links, images, tables: everything this series has built presents content to the visitor. But think about the web you use: you search, you sign in, you check out, you post. Each of those moments is a form: the mechanism by which a page collects values from a person and sends them to a server.…

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...