Ordered and Unordered Lists
ul when the order does not matter, ol when it does. Plus the start, reversed, type and value attributes that most people never discover.
A complete HTML path: document structure, text, links, media, tables, forms, semantic markup, HTML5, metadata, accessibility, SEO, tooling, projects and assessment.
113 notes in 20 topics
ul when the order does not matter, ol when it does. Plus the start, reversed, type and value attributes that most people never discover.
The third list type, and the most misunderstood. A description list pairs terms with descriptions, which makes it right for glossaries, metadata and s...
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...
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...
Row groups give a table a header, a body and a summary. They are what make long tables printable, scrollable and understandable.
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.
A table a screen reader can read is a table with named headers. scope handles simple tables, headers and id handle the hard ones.
A table with eight columns cannot fit on a phone. Four patterns that keep the data usable, and the trade off each one makes.
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...
One element, more than twenty types. Choosing the right one gives you the correct mobile keyboard, free validation and better autofill, at no cost.
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.
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.