liveBook · Manning

Check box

As explained in Build a Website with ChatGPT

A checkbox is a form control representing an independently selectable yes-or-no or on-or-off value.

A check box is a small square form control for an independent yes-or-no, accept-or-reject, or on-or-off choice. Clicking it adds a checkmark; clicking it again removes the checkmark. section 8.3.5

Use a check box when a form needs a single independent choice:

  • Leave it unchecked when the user does not want an option, such as future-event notifications. section 8.3.5
  • Start it checked when the user is expected to accept an option, such as subscribing to a newsletter. section 8.3.5
  • Choose radio buttons instead when the user must select one option from several alternatives. section 8.3.5 section 8.7

Event sign-up form

A volunteer sign-up page can include a check box for an independent preference, alongside fields for a name, email address, longer message, radio-button choice, selection list, and submit button. When asking ChatGPT to generate the page, specify the checkbox label and whether it should begin checked. section 8.4 section 8.7

A checkbox with the label "Get notified about future events".

View a concrete checkbox labeled “Get notified about future events.” section 8.3.5

How Build a Website with ChatGPT covers it

How deep it goes
Explains visible checked and unchecked states and initial-state customization, but does not detail generated code internals.
Examples
Uses notification, newsletter-subscription, and event-sign-up choices as concrete checkbox examples.
What it assumes
Assumes the basic purpose of a form while teaching checkbox meaning and choice among common form controls.
What you can do after
Build it from scratch by specifying a checkbox label, response meaning, and initial checked state in a generated form.
How it connects
Connects check boxes with forms, labels, radio buttons, selection lists, text fields, and submit buttons.

Also explained in

Compare how 4 books explain check box →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.