Skip to content
Astera Technology

Native HTML control behavior

Labels, grouping, defaults, disabled states and form ownership.

Astera Technology

Connect a visible label to its input

Test explicit label association by clicking the label and checking the control it identifies.

Practical lesson
Astera Technology

Understand the first-legend exception in a disabled fieldset

Compare an input’s own disabled property with its effective disabled state inherited from fieldset.

Practical lesson
Astera Technology

Give independent radio groups different names

Keep a text-size choice and an ink choice independent by using separate radio names.

Practical lesson
Astera Technology

Start a required select without a chosen answer

Keep a prompt option empty so native validity distinguishes it from a real topic choice.

Practical lesson
Astera Technology

Put a textarea default in its text content

Separate a textarea’s original default text from its current value after editing.

Practical lesson
Astera Technology

Remove a boolean attribute to turn it off

Test boolean attribute presence instead of treating its written string as a true or false value.

Practical lesson
Astera Technology

Use datalist as suggestions rather than an allowlist

Enter a value outside the supplied suggestions and inspect what native validity actually says.

Practical lesson
Astera Technology

Associate a control with a form outside its container

Use form="…" to establish ownership independently of where an input appears in the DOM.

Practical lesson
Astera Technology

Separate task progress from a scalar measurement

Use progress for files processed and meter for a bounded sample reading, even when both ratios are 60%.

Practical lesson