Checkboxes, Radio Buttons and Grouping
Checkboxes for many answers, radios for one. The name attribute is what groups radios, and fieldset with legend is what makes either group make sense.
The HTML markup language.
120 notes tagged
Checkboxes for many answers, radios for one. The name attribute is what groups radios, and fieldset with legend is what makes either group make sense.
A label names a field for every reader and grows its click target. Two ways to bind one, and the reasons a form without labels is not usable.
One element, more than twenty types. Choosing the right one gives you the correct mobile keyboard, free validation and better autofill, at no cost.
Every form is a container, a set of named controls and a submit button. Learn what action and method do, why name matters more than id, and what the b...
A table with eight columns cannot fit on a phone. Four patterns that keep the data usable, and the trade off each one makes.
A table a screen reader can read is a table with named headers. scope handles simple tables, headers and id handle the hard ones.
One cell covering several columns or rows. Simple to write, easy to get wrong, and the arithmetic has to balance or the whole grid tears.
Row groups give a table a header, a body and a summary. They are what make long tables printable, scrollable and understandable.
A table is for two dimensional data, never for layout. Learn the four core elements, the difference between th and td, and the test that tells you whe...
A sublist goes inside the li it belongs to, not beside it. That one rule fixes almost every broken nested list, and it is what makes a multi level men...
The third list type, and the most misunderstood. A description list pairs terms with descriptions, which makes it right for glossaries, metadata and s...
ul when the order does not matter, ol when it does. Plus the start, reversed, type and value attributes that most people never discover.