SEO basics every developer should build in
The technical foundations that let search engines find, understand and show your pages. No tricks, no guarantees, just good struc…
Style a component by the width of its container, not the screen.
A card in a wide main column and the same card in a narrow sidebar need different layouts. Media queries only know the screen width.
.card-wrap {
container-type: inline-size;
container-name: card;
}.card { display: grid; gap: 12px; }
@container card (min-width: 480px) {
.card { grid-template-columns: 160px 1fr; align-items: start; }
}The card now changes layout depending on the space it gets, wherever it is placed.
cqi is 1% of the container's inline size:
.card h3 { font-size: clamp(1rem, 4cqi, 1.75rem); }inline-size containment means the container's width cannot depend on its children.The technical foundations that let search engines find, understand and show your pages. No tricks, no guarantees, just good struc…
Practical checks that make a site usable by people with low vision, keyboard-only users and screen-reader users. They also help e…